mathematik
Class Random

java.lang.Object
  extended by mathematik.Random
All Implemented Interfaces:
java.io.Serializable

public class Random
extends java.lang.Object
implements java.io.Serializable

generate random numbers.
note that if different types are requested the random generator moves on anyway.

See Also:
Serialized Form

Constructor Summary
Random()
           
Random(long theSeed)
           
 
Method Summary
static float FLOAT(float theStart, float theEnd)
           
 float getFloat()
           
 float getFloat(float theStart, float theEnd)
          return a random float value from theStart to theEnd, excluding both values.
 int getInt()
           
 int getInt(int theStart, int theEnd)
          return a random int value from theStart to theEnd, including both values.
 Vector3f getVector3f(float theStart, float theEnd)
           
static float INT(int theStart, int theEnd)
           
static void main(java.lang.String[] args)
           
 void setSeed(long theSeed)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Random

public Random()

Random

public Random(long theSeed)
Method Detail

FLOAT

public static float FLOAT(float theStart,
                          float theEnd)

INT

public static float INT(int theStart,
                        int theEnd)

setSeed

public void setSeed(long theSeed)

getInt

public int getInt(int theStart,
                  int theEnd)
return a random int value from theStart to theEnd, including both values.

Parameters:
theStart - int
theEnd - int
Returns:
int

getInt

public int getInt()

getFloat

public float getFloat(float theStart,
                      float theEnd)
return a random float value from theStart to theEnd, excluding both values.

Parameters:
theStart - float
theEnd - float
Returns:
float

getFloat

public float getFloat()

getVector3f

public Vector3f getVector3f(float theStart,
                            float theEnd)

main

public static void main(java.lang.String[] args)


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009