Hey, the tutorial here will help you: http://www.cprogramming.com/tutorial/random.html
Basically, rand needs a seed from somewhere(usually the time, converted to seconds) in order to generate a random number, and if you don't set that seed then you'll always get the same output.
So read the tutorial, if it still does it(which it shouldn't) post back and include your code =]
Cheers,
Jamey
Basically, rand needs a seed from somewhere(usually the time, converted to seconds) in order to generate a random number, and if you don't set that seed then you'll always get the same output.
So read the tutorial, if it still does it(which it shouldn't) post back and include your code =]
Cheers,
Jamey