util
Class Dice

java.lang.Object
  |
  +--util.Dice

public class Dice
extends Object


Constructor Summary
Dice()
           
 
Method Summary
static boolean coin()
           
static boolean coin(float per)
           
static int d(int what)
          Return number from 0 to what-1, inclusive (i.e.
static double f(double max)
           
static double f(double min, double max)
           
static float f(float max)
           
static float f(float min, float max)
           
static boolean percent(float per)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dice

public Dice()
Method Detail

d

public static int d(int what)
Return number from 0 to what-1, inclusive (i.e. [0, what)

coin

public static boolean coin()
Returns:
if a coin flipped heads.

coin

public static boolean coin(float per)

percent

public static boolean percent(float per)

f

public static float f(float max)

f

public static float f(float min,
                      float max)

f

public static double f(double max)

f

public static double f(double min,
                       double max)