07-25-2007, 05:08 PM
lets say i have 10 links and i want to out them at random how would i do that ?
picking from a list of str's at random
|
07-25-2007, 05:08 PM
lets say i have 10 links and i want to out them at random how would i do that ?
07-25-2007, 05:26 PM
For example
Use functions srand and rand to get random numbers. They are documented in the MSDN library on the internet. Divide to get a number between 0 and 9. Store these strings to array. Get strings from the array using these numbers.
07-25-2007, 05:34 PM
you can also use this as your r# generator
random number
07-25-2007, 05:46 PM
oh, and once you have the r#, use a 'getl' (remember it starts counting at 0 not 1) to get the line you want.
07-28-2007, 08:32 PM
thanks ken that post helped alot
|
« Next Oldest | Next Newest »
|