Math.random() is not intended be a _good_ source of random -- it&#x27;s essentially expected to be on par with C&#x27;s rand(), although IIRC most implementations are better.<p>There are APIs for cryptographically secure random numbers, but Math.random() is not it.