package smims.networking.model;

public class DiceRoller {

	private int result;
	
	public DiceRoller() {}
	
	public void rollDice()
	{
		result = (int)(Math.random()*6);
	}
	
	public int getResult()
	{
		return result;
	}
}

@@ -32,152 +32,404 @@
 %0D%0A%0D%0A
-public class DiceRoller %7B%0D%0A%0D%0A%09private int result;%0D%0A%09%0D%0A%09public DiceRoller() %7B%7D%0D%0A%09%0D%0A%09public void rollDice()%0D%0A%09%7B%0D%0A%09%09result = (int)(Math.random()*6)
+import java.util.Random;%0D%0A%0D%0Apublic class DiceRoller %7B%0D%0A%09private static final int SidesOnADie = 6;%0D%0A%09private final Random random = new Random();%0D%0A%09private int result;%0D%0A%09%0D%0A%09public DiceRoller() %7B%7D%0D%0A%09%0D%0A%09public void rollDice()%0D%0A%09%7B%0D%0A%09%09// nextInt returns an value x where 0 %3C= x %3C bound; the result must%0D%0A%09%09// be increased by one to conform to real-world die.%0D%0A%09%09result = random.nextInt(SidesOnADie) + 1
 ;%0D%0A%09

Use java.util.random for DiceRoller