mercredi 8 janvier 2020

Picking some numbers when probability for each is given

I want to pick 3 items , say 1, 2 or 3. The probability of 1 being picked, 2 being picked and 3 being picked is known. How can I implement this in code if I already have a random number generaor ?




Aucun commentaire:

Enregistrer un commentaire