Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 randomizer help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Azzy




PostPosted: Sat Nov 01, 2003 10:14 pm   Post subject: randomizer help

i need to make an 8 character word with letters and numbers.they are in different arrays and i need to get the program to pick them at random.how would i do that?
the array with the letters is IDnum and the one with letters is IDalph.
please help me.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sat Nov 01, 2003 10:49 pm   Post subject: (No subject)

code:

put IDnum(Rand.Int(low,high))

like that?

You just use Rand.Int to pic a random integer in range and pass it as your array's index.

also - note our "post subjects must be descriptive" policy
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Azzy




PostPosted: Sat Nov 01, 2003 10:52 pm   Post subject: (No subject)

k thanks.i'll try that.and i changed the name.sry bout that.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: