did you mean rng.nextInt ?