Tag Archives: Random

Java dice game

The program asks how much money you want to bet (amount of rounds) and throws three dice. If you get six once you win 1 euro, if twice 20 euros and if all three dice give a six you win 40 euros. DiceGame.java: import java.util.Scanner; import java.util.Random; public class DiceGame { Scanner reader=new Scanner(System.in); Random… Read More »