Thread
:
C - Random Number Generator!
View Single Post
08-26-2008, 11:15 PM
#
2
(
permalink
)
bla!!
Monster Techie
Join Date: May 2004
Location: /usr/root/mn/us
Posts: 1,121
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!!
View Public Profile
Send a private message to bla!!
Visit bla!!'s homepage!
Find More Posts by bla!!