Elm

6 thoughts
last posted Oct. 2, 2016, 9:53 a.m.

2 later thoughts

0

The documentation for Random suggests using system time for creating seeds but this is not available in the standard runtime and even if it was a Github comment suggests it doesn't sufficient spread itself across the bit space to give a good seed.

The recommended way is to use native Javascript's Math.random and pass it via a port.

 Math.random() * Math.pow(2,32)

3 earlier thoughts