Srand Time Null Dev C%2b%2b

Srand Time Null Dev C%2b%2bSrand Time Null Dev C%2b%2b2b 2b apartments

C library function - srand - The C library function void srand(unsigned int seed) seeds the random number generator used by the function rand. Srand(time(null)) By using this function we make use of the computer’s internal clock to control the choice of the seed. The seed is forever changing since the time is continuously changing.

2003-03-20 00:11:03 UTC
DevC%2b%2b

Srand Time Null Dev C 2b 2b C

Hi!
friends...i have got a doubt...
how to use srand() function. how to define the seed for this.
suppose i want to generate a random number between 0 and 10. then what seed should i use...
though rand() function works fine....i just wanted to know the difference beween srand() and rand()...
_____________________________________________________________
Get email for your site ---> http://www.everyone.net
_____________________________________________________________
Select your own custom email address for FREE! Get ***@yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag