Class RandomUtils


  • public class RandomUtils
    extends Object
    • Constructor Detail

      • RandomUtils

        public RandomUtils​(long seed)
    • Method Detail

      • getSeed

        public long getSeed()
      • getRandomIntWithinRange

        public int getRandomIntWithinRange​(int max)
        Get random integer within a range exclusively.
        Parameters:
        max -
        Returns:
      • getRandomIntWithinRange

        public int getRandomIntWithinRange​(long min,
                                           long max)
      • getRandomDoubleWithinRange

        public Double getRandomDoubleWithinRange​(double min,
                                                 double max)
      • getRandomFloatWithinRange

        public Float getRandomFloatWithinRange​(long min,
                                               long max)
      • getRandomLongObject

        public Long getRandomLongObject()
      • getRandomLongWithinRange

        public Long getRandomLongWithinRange​(long min,
                                             long max)
      • getRandomShortWithinRange

        public Short getRandomShortWithinRange​(long min,
                                               long max)
      • getRandomByte

        public byte getRandomByte()
      • getRandomBoolean

        public Boolean getRandomBoolean()
      • getRandomCharacter

        public Character getRandomCharacter()
      • getRandomLocalDate

        public LocalDate getRandomLocalDate()
      • getRandomLocalDateTime

        public LocalDateTime getRandomLocalDateTime()