Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
picking from a list of str's at random
#1
lets say i have 10 links and i want to out them at random how would i do that ?
#2
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.
#3
you can also use this as your r# generator
random number
An old blog on QM coding and automation.

The Macro Hook
#4
oh, and once you have the r#, use a 'getl' (remember it starts counting at 0 not 1) to get the line you want.
An old blog on QM coding and automation.

The Macro Hook
#5
thanks ken that post helped alot


Forum Jump:


Users browsing this thread: 1 Guest(s)