RandomStringUtils
instead@Deprecated public class Random extends Object
Constructor and Description |
---|
Random()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
char |
randomAlpha()
Deprecated.
Generate a random alphabetic character - a-z or A-Z
|
char |
randomAlphaNumeric()
Deprecated.
Generate a random alphanumeric character.
|
char |
randomNumeric()
Deprecated.
Generate a random digit - from 0 - 9
|
String |
randomString(int length)
Deprecated.
Generate a random string of characters and numbers
|
String |
randomString(int length,
boolean includeNumbers)
Deprecated.
Generate a random string of characters
|
public String randomString(int length)
length
- The size of the generated stringpublic 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()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.