Class Generator


  • public class Generator
    extends java.lang.Object
    Author:
    Guy Vachet
    • Constructor Summary

      Constructors 
      Constructor Description
      Generator()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getDummyString()  
      static java.lang.String getDummyString​(int length)  
      static int randomInt​(int maxValue)
      randoms a int value between 0 (included) to maxValue (excluded) with (approximately) uniform distribution from that range
      static long randomLong​(long maxValue)
      randoms a long value between 0 (included) to maxValue (excluded) with (approximately) uniform distribution from that range
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Generator

        public Generator()
    • Method Detail

      • getDummyString

        public static java.lang.String getDummyString()
        Returns:
        a randomly shuffled text
      • getDummyString

        public static java.lang.String getDummyString​(int length)
        Parameters:
        length -
        Returns:
        a randomly shuffled text
      • randomInt

        public static int randomInt​(int maxValue)
        randoms a int value between 0 (included) to maxValue (excluded) with (approximately) uniform distribution from that range
        Parameters:
        maxValue -
        Returns:
        a random value between 0 (included) to maxValue (excluded)
      • randomLong

        public static long randomLong​(long maxValue)
        randoms a long value between 0 (included) to maxValue (excluded) with (approximately) uniform distribution from that range
        Parameters:
        maxValue -
        Returns:
        a random value between 0 (included) to maxValue (excluded)