Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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?
Posted

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.

Gamer extraordinaire. Programmer wannabe.
Posted

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).

Gamer extraordinaire. Programmer wannabe.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...