dimanche 25 juillet 2021

Is there a way to make a random number generator in java that is more likely to land on one number than another?

I want to make a random number generator in java, that generates a random number from 1-20, but I want it to be more likely to generate 1 than 20, like lower numbers are more likely to generate than higher number, is there a way to do that?




Aucun commentaire:

Enregistrer un commentaire