lundi 12 mars 2018

Getting a random number (with a percentage for a specific range)

I'm generating random numbers between 1-100, and I just want to know if its possible to set a bigger percentage to get some numbers. For example: The range is 1-100, but i want that there will be a 70% chance to get a number between 40-50.




Aucun commentaire:

Enregistrer un commentaire