nl.beesting.beangenerator.util
Class RandomUtil

java.lang.Object
  extended by nl.beesting.beangenerator.util.RandomUtil

public class RandomUtil
extends java.lang.Object


Constructor Summary
RandomUtil()
           
 
Method Summary
static boolean initRandomBoolean()
           
static char initRandomChar()
          Instantiates random char
static double initRandomDoubleBetween(double min, double max)
          Instantiates random double given min and max
static int initRandomInt()
          Method initRandomInt.
static int initRandomIntBetween(int min, int max)
          Instantiates random long between given min and max
static long initRandomLong()
          Method initRandomLong.
static long initRandomLongBetween(long min, long max)
          Instantiates random long between given min and max
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomUtil

public RandomUtil()
Method Detail

initRandomLongBetween

public static long initRandomLongBetween(long min,
                                         long max)
Instantiates random long between given min and max

Parameters:
min - the minimal value (including)
max - the maximal value (excluding)
Returns:

initRandomIntBetween

public static int initRandomIntBetween(int min,
                                       int max)
Instantiates random long between given min and max

Parameters:
min - the minimal value
max - the maximal value
Returns:
the random long created

initRandomDoubleBetween

public static double initRandomDoubleBetween(double min,
                                             double max)
Instantiates random double given min and max

Parameters:
min - the minimal value
max - the maximal value
Returns:
the random double created

initRandomChar

public static char initRandomChar()
Instantiates random char


initRandomInt

public static int initRandomInt()
Method initRandomInt.

Returns:
int

initRandomLong

public static long initRandomLong()
Method initRandomLong.

Returns:
long

initRandomBoolean

public static boolean initRandomBoolean()

main

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


Copyright 2008. All Rights Reserved.