edu.toronto.cs.util
Class Chaos

java.lang.Object
  extended by edu.toronto.cs.util.Chaos

public class Chaos
extends java.lang.Object


Constructor Summary
Chaos()
           
 
Method Summary
static int inRange(int lo, int hi)
           
static double nextDouble()
           
static boolean nextThreshold(float theta)
           
static int nextUpTo(int n)
           
static void seed(int s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chaos

public Chaos()
Method Detail

seed

public static void seed(int s)

nextUpTo

public static int nextUpTo(int n)

inRange

public static int inRange(int lo,
                          int hi)

nextThreshold

public static boolean nextThreshold(float theta)

nextDouble

public static double nextDouble()