According to the article, SpiderMonkey's PRNG is not much better than
V8's. It seems we are using a even older algorithm, although
ironically have a better result.

After reading this article as well as some introduction from the
wikipedia, it seems to me that "xorshift+" is probably the best
algorithm to adopt, because it is simple, fast, and passes all tests
in TestU01 [1], which indicates it should also have a good quality.

I'm not an expert on this, though.


[1] http://xorshift.di.unimi.it/

- Xidorn

On Wed, Nov 25, 2015 at 10:42 PM, Philip Chee <philip.c...@gmail.com> wrote:
> <https://medium.com/@betable/tifu-by-using-math-random-f1c308c4fd9d#.ui74puy9k>
>
> Hopefully Spidermonkey's Math.random() is better.
>
> Phil
>
> --
> Philip Chee <phi...@aleytys.pc.my>, <philip.c...@gmail.com>
> http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
> Guard us from the she-wolf and the wolf, and guard us from the thief,
> oh Night, and so be good for us to pass.
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to