|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.utils.Random
public class Random
This class generates random stuff!
Constructor Summary | |
---|---|
Random()
|
Method Summary | |
---|---|
char |
randomAlpha()
Generate a random alphabetic character - a-z or A-Z |
char |
randomAlphaNumeric()
Generate a random alphanumeric character. |
char |
randomNumeric()
Generate a random digit - from 0 - 9 |
java.lang.String |
randomString(int length)
Generate a random string of characters and numbers |
java.lang.String |
randomString(int length,
boolean includeNumbers)
Generate a random string of characters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Random()
Method Detail |
---|
public java.lang.String randomString(int length)
length
- The size of the generated stringpublic java.lang.String randomString(int length, boolean includeNumbers)
length
- The size of the generated stringincludeNumbers
- Should the string contain just alpha or alpha numeric charaterspublic char randomAlphaNumeric()
public char randomAlpha()
public char randomNumeric()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |