public class Dice {
  public int output = Math.random(1, 6);
}

public class Dice {
  public int[] output = {1, 2, 3, 4, 5, 6}
  public void roll() {
    for(int i : output) {
      System.out.println(i);
    }
  }
}

Update Dice.java