- Die - Class in cse1030.games
-
A class that represents a fair die having at least
two faces.
- Die() - Constructor for class cse1030.games.Die
-
Create a six sided die and sets its face value to a random
value between 1
and 6
, inclusive.
- Die(int) - Constructor for class cse1030.games.Die
-
Create a die with the specified number of faces and sets its
face value to a random value between 1
and
faces
, inclusive.
- Die(int, int) - Constructor for class cse1030.games.Die
-
Create a die with the specified number of faces and sets its
face value to a specified value.
- Die(Die) - Constructor for class cse1030.games.Die
-
Create a die that has the same number of faces and same value
as another die.
- Die(int, Random) - Constructor for class cse1030.games.Die
-
Create a die with the specified number of faces and a specified
random number generator, and sets its face value to a random
value between 1
and faces
, inclusive.