package Domain; import java.util.Random; public class Dice { private int numberOfDice; public Dice(int numberOfDice){ this.numberOfDice = numberOfDice; } public int rand(int numberOfDice){ Random random = new Random(); numberOfDice = random.nextInt(6); return numberOfDice; } public int getAugenzahl(){ return numberOfDice; } }