public class RandomString extends Object
credit: https://stackoverflow.com/questions/41107/how-to-generate-a-random-alpha-numeric-string
| Modifier and Type | Field and Description |
|---|---|
static String |
alphanum |
static String |
digits |
static String |
lower |
static String |
upper |
| Modifier and Type | Method and Description |
|---|---|
String |
nextString() |
static RandomString |
quickGenerator(int length)
Create an alphanumeric string generator.
|
static RandomString |
secureGenerator(int length) |
public static final String upper
public static final String lower
public static final String digits
public static final String alphanum
public String nextString()
public static RandomString quickGenerator(int length)
See: secureGenerator() instead.
length - the length of the strings that the generator will create.public static RandomString secureGenerator(int length)
length - the length of the strings that the generator will create.Copyright © 2019. All rights reserved.