[erlang-questions] more random uniform
Tony Rogvall
tony@REDACTED
Sun Oct 27 11:13:25 CET 2013
I can not replicate this (on R16B01).
> erase(random_seed), random:seed(erlang:now()), random:uniform(3).
1
> erase(random_seed), random:seed(erlang:now()), random:uniform(3).
2
...
?
/Tony
On 27 okt 2013, at 10:45, Bengt Kleberg <bengt.kleberg@REDACTED> wrote:
> Greetings,
>
> When doing random:uniform/1 for small values, ie 3, the result is 1 the first time. Changing the seed does not help.
> What am I missing?
>
>
> Bengt
>
> Sent from Moxier Mail
> (http://www.moxier.com)
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
"Installing applications can lead to corruption over time. Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131027/2348edf5/attachment.htm>
More information about the erlang-questions
mailing list