java.lang.Objectorg.apache.commons.lang.RandomStringUtils
Operations for random Strings.
Currently private high surrogate characters are ignored. These are unicode characters that fall between the values 56192 (db80) and 56319 (dbff) as we don't know how to handle them. High and low surrogates are correctly dealt with - that is if a high surrogate is randomly chosen, 55296 (d800) to 56191 (db7f) then it is followed by a low surrogate. If a low surrogate is chosen, 56320 (dc00) to 57343 (dfff) then it is placed after a randomly chosen high surrogate.
< - a href="mailto:steven@caswell.name">Steven CaswellStephen - ColebourneGary - GregoryPhil - Steitz1.0 - $ - Id: RandomStringUtils.java 471626 2006-11-06 04:02:09Z bayard $| Constructor: |
|---|
This constructor is public to permit tools that require a JavaBean instance to operate. |
| Method from org.apache.commons.lang.RandomStringUtils Summary: |
|---|
| random, random, random, random, random, random, random, randomAlphabetic, randomAlphanumeric, randomAscii, randomNumeric |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.commons.lang.RandomStringUtils Detail: |
|---|
Creates a random string whose length is the number of characters specified. Characters will be chosen from the set of all characters. |
Creates a random string whose length is the number of characters specified. Characters will be chosen from the set of characters specified. |
Creates a random string whose length is the number of characters specified. Characters will be chosen from the set of characters specified. |
Creates a random string whose length is the number of characters specified. Characters will be chosen from the set of alpha-numeric characters as indicated by the arguments. |
Creates a random string whose length is the number of characters specified. Characters will be chosen from the set of alpha-numeric characters as indicated by the arguments. |
Creates a random string based on a variety of options, using default source of randomness. This method has exactly the same semantics as #random(int,int,int,boolean,boolean,char[],Random) , but instead of using an externally supplied source of randomness, it uses the internal static Random instance. |
Creates a random string based on a variety of options, using supplied source of randomness. If start and end are both If set is not This method accepts a user-supplied Random instance to use as a source of randomness. By seeding a single Random instance with a fixed seed and using it for each call, the same random sequence of strings can be generated repeatedly and predictably. |
Creates a random string whose length is the number of characters specified. Characters will be chosen from the set of alphabetic characters. |
Creates a random string whose length is the number of characters specified. Characters will be chosen from the set of alpha-numeric characters. |
Creates a random string whose length is the number of characters specified. Characters will be chosen from the set of characters whose
ASCII value is between |
Creates a random string whose length is the number of characters specified. Characters will be chosen from the set of numeric characters. |