nextInt wants an integer, not a long! -> int max = 100;