The rand function returns a pseudorandom integer in the range 0 to RAND_MAX.
int rand( )
The rand returns a pseudorandom number.
EX1
//This program seeds the random-number generator. int test_rand() { int nn1, nn2; nn1 = rand(); out_int("rand()=", nn1); nn2 = rand(); out_int("rand()=", nn2); return 1; }
rnd
origin.h