Age | Commit message (Collapse) | Author |
|
It is needed in various tests. It uses the Ziggurat algorithm, which
is the fastest that I know.
|
|
|
|
|
|
* sverker/random-improved-algo:
Improve algorithm in module random.
Fix a bug in the implementation of the pseudo-random number generator
OTP-8713
|
|
Use Erlang specs and types for documentation
|
|
Avoid seed values that are even divisors of the primes
and by that prevent getting seeds that are stuck on zero.
Example: random:seed(0,0,0) would produce a series of only zeros.
|
|
|