I believe Linux has most of useful functions in library. Your random is
one of them. Take a look at your book and stdlib.h.
H.J.
1. Random Number generator not Random *****
Hi:
I am using random()&01 to get a binary random
number. Turns out if I generate more than 50 numbers,
the last 30 or more are all 1s or 0s, i.e., my random
number generator is not random!
Worse, if I generate 500 numbers, 497 are 1s.
The fraction of consistent numbers increases as the number
of trials increases.
Any clues? Anybody got a pointer to an FAQ where
I can get a random number generator that is random?
Thanks in advance,
-Badri
3. Trying to generate random random numbers!
5. Help, cgi-bin script "random" will only return last url in random list.
6. Recommended Embedded Linux distros
7. How random is random under Linux?
9. Random Characters with RANDOM
10. ${RANDOM} not producing random numbers! (ksh, context switching?)
11. [RFC] Allow net devices to contribute to /dev/random
13. random disconnections using select & nonblocking io