Thread: Random Numbers!
View Single Post
  #2 (permalink)  
Old 04-03-2008, 12:56 AM
RagedSparrow's Avatar   
RagedSparrow RagedSparrow is offline
Newbie
 
Join Date: Apr 2008
Location: Mocksville, NC
Age: 22
Posts: 10
Rep Power: 0
RagedSparrow is on a distinguished road
Send a message via Skype™ to RagedSparrow
Default Re: Random Numbers!

So basically what you are wanting the program to do is pick a random number and assign that number between 1 and 12 and assign it to a variable, then have the program tell the user if it matches the user's input?

Code:
Dim random as New Random
dim num as integer
num=random.next(1,13)
That is the code just for generating the random number between 1 and 12. If you need help with any other part of the code just ask.
Reply With Quote