How do I get random #s?

mcdonald at uxe.cso.uiuc.edu mcdonald at uxe.cso.uiuc.edu
Wed Feb 8 02:57:00 AEST 1989



>I think it is.  If you really need extremely good random deviates
>then you have a lot of research and hard work to do.

I finally got tired of non-random random numbers, so
I hooked an ADC converter and a hot resistor to my computer and xor'ed the 
results from it with rand(). This gives me about 10000 really random numbers
a second. It is not trivial to get REALLLY random numbers out of such
a setup, but it can be done.
 



More information about the Comp.lang.c mailing list