[erlang-questions] Implementation of a 2006 version of Wichmann-Hill random number generator for Erlang/OTP

Richard O'Keefe <>
Thu Dec 2 02:59:41 CET 2010


On 2/12/2010, at 1:56 AM, Kenji Rikitake wrote:
> I'd appreciate if I could take a look at your code for the random module
> with multiple choice of algorithms.

I'll send this privately.  The *interface* is general, the *code* is not.

> uniform() value range: 
>   0.0 =< uniform() < 1.0

	Same as drand48().

> uniform(N) when N = integer() value range: 
>   1 =< uniform(N) =< N

	Yes.




More information about the erlang-questions mailing list