A worth to read article by [Mike Malone](<a href="https:&#x2F;&#x2F;medium.com&#x2F;@betable&#x2F;tifu-by-using-math-random-f1c308c4fd9d#.a7ewychse" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@betable&#x2F;tifu-by-using-math-random-f1c308...</a>) explains the problem with Math.random() in more detail.<p>Quoting Donald Knuth &#x2F; The Art of Computer Programming:<p>&gt; “Many random number generators in use today are not very good. There is a tendency for people to avoid learning anything about such subroutines; quite often we find that some old method that is comparatively unsatisfactory has blindly been passed down from one programmer to another, and today’s users have no understanding of its limitations.”