Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int die1,die2;
- Random randomInt=new Random();
- die1=randomInt.nextInt(100)+1;
- die2=randomInt.nextInt(100)+1;
- int sum=die1+die2;
- JOptionPane.showMessageDialog(null, "Die 1= "+die1+"\n Die 2 = "+die2
- +"\nThe sum of the two dice is: "+sum);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement