Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
picking from a list of str's at random
#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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)