public static String generateRandomString() {
return new BigInteger(130, new SecureRandom()).toString(36);
}
could someone help me explaining what toString(36) meaning herepassed, but dont know meaning
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Norbert Backend Developer
24 November 2022, 19:01
instead of 36 it should be 32
0
Rohit Aggarwal Backend Developer at Tekion Corp.
9 August 2020, 07:10
represents the radix, which means how many alphanumeric characters to consider. It will start with a and will go on till z but that only consists of 26 characters. After that java will consider digits from 0 to 9
0