Generating a number from an uneven distribution in js
I'm trying to make a number generator, where the ods of getting a number between 1 and 2 are bigger than 2 and 4 etc. However, I can't get my mind over how to do this. I've linked a graph of how the distribution should look like when graphed. Image
Aucun commentaire:
Enregistrer un commentaire