/* RollDice.java David G. Klick October 1, 2007 CIS 111 Demonstrates simple loop and random number use. This program was created due to a class request. */ public class RollDice extends CIS111App { public static void main(String[] args) { int number, ctr; int die; println("This program simulates rolling dice.\n"); number = getInt("How many dice would you like me to roll? "); for (ctr=1; ctr<=number; ctr++) { die = random(6); printf("Roll number %3d: %1d\n", ctr, die); } } }