nl.justobjects.pushlet.util
Class Rand

java.lang.Object
  extended by nl.justobjects.pushlet.util.Rand

public class Rand
extends java.lang.Object

Randomizing routines.

Version:
$Id: Rand.java,v 1.4 2007/12/07 12:57:40 justb Exp $
Author:
Just van den Broecke

Field Summary
private static char[] CHARS
           
private static char[] NON_VOWELS
           
private static java.util.Random random
           
private static char[] VOWELS
           
 
Constructor Summary
Rand()
           
 
Method Summary
static java.io.File randomBinaryFile(int aSize)
           
static byte[] randomBlob(int aSize)
           
static byte randomByte()
           
static byte[] randomBytes(int aSize)
           
static char randomChar()
           
static double randomDouble()
           
static int randomInt()
           
static int randomInt(int min, int max)
           
static long randomLong()
           
static long randomLong(long min, long max)
           
static java.lang.String randomName(int aLength)
           
static char randomNonVowel()
           
static void randomSleep(long min, long max)
           
static java.lang.String randomString()
           
static java.lang.String randomString(int aLength)
           
static java.io.File randomTempDir()
           
static java.io.File randomTempFile()
           
static java.io.File randomTextFile(int aSize)
           
static char randomVowel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHARS

private static char[] CHARS

NON_VOWELS

private static char[] NON_VOWELS

VOWELS

private static char[] VOWELS

random

private static java.util.Random random
Constructor Detail

Rand

public Rand()
Method Detail

randomChar

public static char randomChar()

randomVowel

public static char randomVowel()

randomNonVowel

public static char randomNonVowel()

randomTempDir

public static java.io.File randomTempDir()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

randomTempFile

public static java.io.File randomTempFile()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

randomBinaryFile

public static java.io.File randomBinaryFile(int aSize)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

randomTextFile

public static java.io.File randomTextFile(int aSize)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

randomBytes

public static byte[] randomBytes(int aSize)

randomBlob

public static byte[] randomBlob(int aSize)

randomByte

public static byte randomByte()

randomDouble

public static double randomDouble()

randomInt

public static int randomInt()

randomInt

public static int randomInt(int min,
                            int max)

randomLong

public static long randomLong()

randomLong

public static long randomLong(long min,
                              long max)

randomName

public static java.lang.String randomName(int aLength)

randomSleep

public static void randomSleep(long min,
                               long max)

randomString

public static java.lang.String randomString(int aLength)

randomString

public static java.lang.String randomString()


Copyright 2000-2003 - Just Objects B.V.