I am designing a game in libGDX which drops different sized rocks for the user to dodge.
My Question: How can I create a method which takes in a low and high int value, and returns a random number. However, I want this random number to be biased toward the middle of the range (similar to a normal distribution).
I would like the method to look something like this: public int randBiasInt(int low, int high) { }
Aucun commentaire:
Enregistrer un commentaire