jeudi 21 septembre 2017

Create a random number WITHIN a random range of numbers in JAVA

I have been given a task to create a truly random computer number guessing game generator.

So,

  1. Create a minimum for the range(which is completely random)
  2. Create a maximum "" ""
  3. create a number within the range.

My question is how do I make sure that randMIN is always LOWER than randMAX? Those are the names of my random numbers for the border of the guessing game.




Aucun commentaire:

Enregistrer un commentaire