Class RandomStringGenerator
java.lang.Object
net.sourceforge.jbizmo.commons.random.RandomStringGenerator
Utility class for creating random alphanumeric strings
Copyright 2024 (C) by Martin Ganserer
- Version:
- 1.0.0
- Author:
- Martin Ganserer
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateRandomString(int length) Generate a random string that contains characters from 0 to 9 and A to Z with the given length
-
Method Details
-
generateRandomString
Generate a random string that contains characters from 0 to 9 and A to Z with the given length- Parameters:
length- the length of the string- Returns:
- the generated random string
- Throws:
IllegalArgumentException- if the length is smaller than 1
-