net.rim.pushsdk.commons
Class RandomGenerator

java.lang.Object
  extended by net.rim.pushsdk.commons.RandomGenerator

public class RandomGenerator
extends Object

Utility to generate random alpha numeric strings.

Author:
mdicesare

Constructor Summary
RandomGenerator()
           
 
Method Summary
static String getRandomAlphaNumeric(int length)
          Generates a random alpha numeric string of the given length.
static String getRandomNumeric(int length)
          Generates a random numeric string of the given length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomGenerator

public RandomGenerator()
Method Detail

getRandomAlphaNumeric

public static String getRandomAlphaNumeric(int length)
Generates a random alpha numeric string of the given length.

Parameters:
length - the length of the string
Returns:
a random alpha numeric string

getRandomNumeric

public static String getRandomNumeric(int length)
Generates a random numeric string of the given length.

Parameters:
length - the length of the random string
Returns:
the random numeric string


Copyright © 2011 Research In Motion. All Rights Reserved.