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