I want to gather random integers from 0 to 20 and I want it the randomness to come from a left skewed distribution like beta or chi-squared, so the lower integers are more probable to appear. How can I achieve this? I checked out numpy's beta and chi squared functions but you can't bound them to an interval, is there an easy way or should I hardcode it?
Aucun commentaire:
Enregistrer un commentaire