Rigging pseudo random generator in javascript [duplicate]
I'm using Math.random to generate numbers between a range. Instead of having complete randomness I want my generator to have a slight bias towards higher numbers. Is there some way to achieve this without destroying the randomness of the generator?
Aucun commentaire:
Enregistrer un commentaire