Fix non-positive argument to Random.nextInt in getRandomValue()