|
-
Jul 2nd, 2002, 06:05 PM
#1
I need some randomness
if I use srand(time(NULL)) in my initialize portion of my project (OGL, by the way), and then use rand() blah blah blah to get random colors on some QUADS I'm using they turn out the same color everytime. It like I'm seeding the generator with the same number each time. I thought time(NULL) would be the time past midnight in millis. Am I wrong?
Thanks, NOMAD
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|