How do I get random #s?
Michael Paul Hunter
bagpiper at oxy.edu
Wed Feb 15 03:45:11 AEST 1989
In article <225800121 at uxe.cso.uiuc.edu> mcdonald at uxe.cso.uiuc.edu writes:
>
>
>>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.
>
Unfortunately it is hard to reproduce sequences of numbers using this
method, which makes modeling a bit hairy!!
Mike
More information about the Comp.lang.c
mailing list