Random number to select a winner

starcraft

Centurion
Joined
Jun 29, 2003
Messages
167
Location
Poway CA
I thought i'd make a slout machine and here is what i thought i'd do. I thought i would assign each grounp with 3 numbers. Like the group Bar| Bar| 7 the numbers 3394/2271/2274 and have all the groups numbers in an array and have it randomly select a number from the array. But how do i tell it to pick a random number from an array. Also i am thinking about saving the users information like; current balance number of big wins, that kind of information in the registry. But how do i add remove modify the registry in vb?
 
Random.Next(Array[index]) - Array being an array of integer.
Is that what you mean?

That's a bad use of the registry. Use a Binary or XML file to store information.
 
XML and binary are both good, it's really a design decision based on what you're program involves and does.

You can repeat a loop so many times by putting it inside a loop itself (nested loop).
 
Back
Top