how to genrate random no. in C language
Answers
Answered by
1
Explanation:
The rand() function in <stdlib. h> returns a pseudo-random integer between 0 and RAND_MAX . You can use srand(unsigned int seed) to set a seed.
...
More about random numbers:
Perl's Perl_seed() is an example of how to calculate a seed in C for srand() . ...
OpenBSD's arc4random_uniform() explains modulo bias.
Similar questions