Class RandomStringGenerator

java.lang.Object
net.sourceforge.jbizmo.commons.random.RandomStringGenerator

public class RandomStringGenerator extends Object

Utility class for creating random alphanumeric strings

Copyright 2024 (C) by Martin Ganserer

Version:
1.0.0
Author:
Martin Ganserer
  • Method Details

    • generateRandomString

      public static String generateRandomString(int length)
      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