org.ow2.clif.analyze.statistics.util.data
Class Generator

java.lang.Object
  extended by org.ow2.clif.analyze.statistics.util.data.Generator

public class Generator
extends java.lang.Object

Author:
Guy Vachet

Constructor Summary
Generator()
           
 
Method Summary
static java.lang.String getDummyString()
           
static java.lang.String getDummyString(int length)
           
static int randomInt(int maxValue)
          randoms a int value between 0 (included) to maxValue (excluded) with (approximately) uniform distribution from that range
static long randomLong(long maxValue)
          randoms a long value between 0 (included) to maxValue (excluded) with (approximately) uniform distribution from that range
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generator

public Generator()
Method Detail

getDummyString

public static java.lang.String getDummyString()
Returns:
a randomly shuffled text

getDummyString

public static java.lang.String getDummyString(int length)
Parameters:
length -
Returns:
a randomly shuffled text

randomInt

public static int randomInt(int maxValue)
randoms a int value between 0 (included) to maxValue (excluded) with (approximately) uniform distribution from that range

Parameters:
maxValue -
Returns:
a random value between 0 (included) to maxValue (excluded)

randomLong

public static long randomLong(long maxValue)
randoms a long value between 0 (included) to maxValue (excluded) with (approximately) uniform distribution from that range

Parameters:
maxValue -
Returns:
a random value between 0 (included) to maxValue (excluded)