1.

Give the usage of any two functions that generate pseudo-random numbers.

Answer»

int rand (void);

Returns a pseudo-random integral number in the range between 0 and RAND_MAX.

void srand (unsigned int seed);

The pseudo-random number generator is initialized using the argument passed as seed.



Discussion

No Comment Found