dimanche 4 avril 2021

Generating random natural numbers with higher probability for lower numbers?

I'm looking for a function like Python's random.randint() which generates random whole numbers between a and b, but one which is more likely to generate numbers closer to a, with only a few closer to b.

Is there a function that does that?




Aucun commentaire:

Enregistrer un commentaire