From ANSI C standard:
call:
int a=rand();
to get pseudo-random integetrs from 0 to RAND_MAX
RAND_MAX shall be at list 32767.
call:
srand(unsiggned int seed);
to set new sequence of pseudo-random numbers (better use before calling rand().
[sig][/sig]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.