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;
	}
}

package smims.networking.model;

import java.util.Random;

public class DiceRoller {
	private static final int SidesOnADie = 6;
	private final Random random = new Random();
	private int result;
	
	public DiceRoller() {}
	
	public void rollDice()
	{
		// nextInt returns an value x where 0 <= x < bound; the result must
		// be increased by one to conform to real-world die.
		result = random.nextInt(SidesOnADie) + 1;
	}
	
	public int getResult()
	{
		return result;
	}
}

Use java.util.random for DiceRoller