aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/random.erl
AgeCommit message (Collapse)Author
2015-03-20Replace usage of erlang:now() with usage of new APIRickard Green
2011-10-18Merge branch 'sverker/random-improved-algo'Sverker Eriksson
* sverker/random-improved-algo: Improve algorithm in module random. Fix a bug in the implementation of the pseudo-random number generator OTP-8713
2011-05-12Types and specifications have been modified and addedHans Bolinder
2011-03-28Improve algorithm in module random.Sverker Eriksson
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.
2011-03-28Fix a bug in the implementation of the pseudo-random number generatorCristian Greco
This commit fixes an error in the mathematical formula of the Wichmann-Hill pseudo-random number generator. In particular, the implementation used until now produces sequences which differ from the expected ones by an extra starting number, which is instead the very last value of the sequence. This bug amplified the effect of extremely correlated initial numbers when seeding different generators with very similar seed values.
2009-11-20The R13B03 release.OTP_R13B03Erlang/OTP