View Single Post
Old 08-26-2008, 11:15 PM   #2 (permalink)
bla!!
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default Re: C - Random Number Generator!

Couldn't you just call srand(time(0)) before you call rand()

This would seed the rand function with the current system time instead of using the default value of 1 for the seed.
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline