you need header

java.util.Random;Random diceRoller = new Random();

 for (int i = 0; i < 10; i++) { int roll = diceRoller.nextInt(6) + 1; System.out.println(roll); 

}