net.rim.pushsdk.commons
Class RandomGenerator
java.lang.Object
net.rim.pushsdk.commons.RandomGenerator
public class RandomGenerator
- extends Object
Utility to generate random alpha numeric strings.
- Author:
- mdicesare
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomGenerator
public RandomGenerator()
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.