This question already has an answer here:
- Generate A Weighted Random Number 6 answers
I have list of integers and I want to randomly choose one based on chances, lower integers has higher chances:
1 - 75%
3 - 25%
and the list would be bigger, like 300 or up to 1000
How can I do this easiest way? :)
(JS)
Aucun commentaire:
Enregistrer un commentaire