probabilistic
Class Coin

java.lang.Object
  extended by probabilistic.Coin

public class Coin
extends Object

The class Coin contains the static method flip. This method returns either 0 or 1, both with probability 0.5.

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

Method Summary
static int flip()
          Returns either 0 or 1, both with probability 0.5.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

flip

public static int flip()
Returns either 0 or 1, both with probability 0.5.

Returns:
either 0 or 1, both with probability 0.5.