I have an array: [45, 21, 12, 78, 4](ex.). I want to choose two values randomly based on its value (bigger number = higher probability of choosing).
[45, 21, 12, 78, 4]
How can I do that ?
Aucun commentaire:
Enregistrer un commentaire