Class Generator
- java.lang.Object
-
- org.ow2.clif.analyze.statistics.util.data.Generator
-
public class Generator extends java.lang.Object- Author:
- Guy Vachet
-
-
Constructor Summary
Constructors Constructor Description Generator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetDummyString()static java.lang.StringgetDummyString(int length)static intrandomInt(int maxValue)randoms a int value between 0 (included) to maxValue (excluded) with (approximately) uniform distribution from that rangestatic longrandomLong(long maxValue)randoms a long value between 0 (included) to maxValue (excluded) with (approximately) uniform distribution from that range
-
-
-
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)
-
-