Package org.kurtymckurt.TestPojo.util
Class RandomUtils
- java.lang.Object
-
- org.kurtymckurt.TestPojo.util.RandomUtils
-
public class RandomUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description RandomUtils(long seed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetRandomBoolean()bytegetRandomByte()CharactergetRandomCharacter()DoublegetRandomDoubleWithinRange(double min, double max)FloatgetRandomFloatWithinRange(long min, long max)intgetRandomIntWithinRange(int max)Get random integer within a range exclusively.intgetRandomIntWithinRange(long min, long max)LocalDategetRandomLocalDate()LocalDateTimegetRandomLocalDateTime()LonggetRandomLongObject()LonggetRandomLongWithinRange(long min, long max)ShortgetRandomShortWithinRange(long min, long max)longgetSeed()
-
-
-
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()
-
-