probabilistic
Class Die

java.lang.Object
  extended by probabilistic.Die

public class Die
extends Object

The class Die contains the static method roll. This method returns an integer in the interval [0, 5], each with probability 1/6.

Author:
Xin Zhang, Franck van Breugel
See Also:
Choice

Method Summary
static int roll()
          Returns an integer in the interval [0, 5], each with probability 1/6.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

roll

public static int roll()
Returns an integer in the interval [0, 5], each with probability 1/6.

Returns:
an integer in the interval [0, 5], each with probability 1/6.