The only code requiring change in this class is in roll(); value should be set to a number between 1 and sides.
No other code should be changed.
public class Die { private int sides; // number of sides of die private int value; // current value that the die is showing public Die(int sides) { this.sides = sides; } public int roll() { value = // YOUR CODE HERE return value; } public int getValue() { return value; } }