Get better conclusions from a javascript randomizer
Math.random() should be adequate for most pseudo-random use cases that don't need to be cryptographically secure.

You can consider using RandomSource.getRandomValues() (MDN Documentation) for a a more random distribution, but this may also come at the cost of more resources being utilized in generating the random number.

You may also have cross-browser compatibility issues as this is newer javascript API.