Quote:
Originally Posted by Groucho
I use random(). I'm pretty sure it's still pseudo-random, but works for what I need. If you want a value between 0 and a number, just use the modulus (%).
Code:
myNewFavoriteRandomNumber = random() % 50; //random number between 0 & 49
Hope this helps!
|
That's what I've been using, and I've been coming up with the exact same numbers no matter what I do every time I run the app.