/* Die2 class for rolling dice
 * Author: CPSC 111 Jan 2010 class
 * Date: Mon 25 Jan 2010
 *
 * Continuing with implementation of Die class, we have filled in the
 * bodies of the two methods. We have also created a constructor that
 * sets a default value for numSides.
 *
 * This code now compiles but has not been tested yet, we have just
 * begun to write the RollDice tester class.
 *
 */
import java.util.Random;

public class Die2 {

    // fields:
    int numSides;

    Die2() {
	numSides = 6;
    }

    int roll()  {
	// declare Random variable
	int randomNumber;
        // want number between 1 and numSides
        // nextInt gives between 0 and k
	Random number = new Random(); // create Random object
	randomNumber = number.nextInt(numSides) + 1; //**something with a Random object** ; 
	return randomNumber;
    };

    void setSides(int inputNumSides) {
	numSides = inputNumSides;
    };

    //integer between 1 and n with random probability

}
//print out number of sides user should input

