bass.util
Class RandomGenerator

java.lang.Object
  extended by bass.util.RandomGenerator

public class RandomGenerator
extends java.lang.Object

A very small utilityclass for getting floatvalues (completely random)

Version:
0.1
Author:
Patrick Mai

Field Summary
private static java.util.Random random
           
 
Constructor Summary
RandomGenerator()
           
 
Method Summary
static java.util.Random getRandom()
           
static float getRandomFloat()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

private static java.util.Random random
Constructor Detail

RandomGenerator

public RandomGenerator()
Method Detail

getRandom

public static java.util.Random getRandom()
Returns:
Returns a simple Randomfloat

getRandomFloat

public static float getRandomFloat()
Returns:
Returns a simple Randomfloat in Range between -0.5 and +0.5