starcraft Posted August 16, 2003 Posted August 16, 2003 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? Quote
wyrd Posted August 16, 2003 Posted August 16, 2003 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. Quote Gamer extraordinaire. Programmer wannabe.
starcraft Posted August 16, 2003 Author Posted August 16, 2003 Also how do i repeat a loop so many time? Quote
Leaders Squirm Posted August 18, 2003 Leaders Posted August 18, 2003 whats better? Re-read wyrd's post. He mentions 2 methods. Also how do i repeat a loop so many time? Look into the usage of For...Next loops. Quote Search the forums | Still IRCing | Be nice
wyrd Posted August 18, 2003 Posted August 18, 2003 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). Quote Gamer extraordinaire. Programmer wannabe.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.