import java.util.Random; public class dice{ public static void main(String[] args){ Random r = new Random(); int num = 1 + r.nextInt(6), num1 = 1+ r.nextInt(6); System.out.println("Roll #1: " + num); System.out.println("Roll #2: " + num1); System.out.println("total: " + (num + num1)); } }