package spil;

import java.util.Random;

/**
 * Created by s165240 on 23-09-2016.
 */
public class Dice {
    private int faceValue;
    private Random rand = new Random();


    public Dice() {
        faceValue = rand.nextInt(6) + 1;
    }

    public void Roll() {
        faceValue = rand.nextInt(6) + 1;
    }

    public int getFaceValue() {
        return faceValue;
    }
}

@@ -5,12 +5,12 @@
 age 
-spil
+game
 ;%0A%0Ai
@@ -120,24 +120,28 @@
 nt faceValue
+ = 1
 ;%0A    privat
@@ -175,77 +175,8 @@
 );%0A%0A
-%0A    public Dice() %7B%0A        faceValue = rand.nextInt(6) + 1;%0A    %7D%0A%0A
     

Change Package name