How to generate a random alpha-numeric string?
- Generate a random alpha-numeric string whose length is the number of characters specified.
- Characters will be chosen from the set of alpha-numeric characters.
- Count is the length of random string to create.
- To generate random alpha-numeric String objects
- Use random(int count, boolean letters, boolean numbers) method to create a random string whose length is the number of characters specified.
- Use randomAlphabetic(int count) method to create a random string whose length is the number of characters specified.
- Use randomAscii(int count) method to create a random string whose length is the number of characters specified.
- Use random(int count, int start, int end, boolean letters, boolean numbers, char… chars) method to create a random string based on a variety of options, using default source of randomness,
Output:
Random 0 = 0280748858014499019999655817886659056806824331462442367947839271
Random 1 = BdODmKWjGtaKeFyYsNCbOPRzquNIIRMiEFPjqTSgbfMvMeZgNKihEdUdUXUniHUh
Random 2 = `2G@|>’/JdI):yB9PD%S4sZp_@ e!S*’
Random 3 = 18Rk2DkkD3bsksE2RCDDRbC1bDCDa1D1
Table Of Content
How to create random string with random characters?
[ad type=”banner”]Output:
UdX5PwalMI
qj62F7zuoR
ndJUNiHSlh
YohYpF5MfA
mwX9UhI7Ci
bCn5bsk2em
pzMXQDYaDx



was useful..thanks a lot