criskgl
10/6/2019 - 8:59 AM

generate random in range

public int generateRandomFrom0UpTo(int upperExclusiveBound){
  System.out.println("pseudo random int between 0 and upperExclusiveBound: " + randomInt);
  int randomInt = (int)(upperExclusiveBound * Math.random());
  return randomInt;
}