Class DoubleRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.AbstractRandomizer<java.lang.Double>
-
- org.jeasy.random.randomizers.number.DoubleRandomizer
-
- All Implemented Interfaces:
Randomizer<java.lang.Double>
public class DoubleRandomizer extends AbstractRandomizer<java.lang.Double>
Generate a randomDouble.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Field Summary
-
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random
-
-
Constructor Summary
Constructors Constructor Description DoubleRandomizer()Create a newDoubleRandomizer.DoubleRandomizer(long seed)Create a newDoubleRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.DoublegetRandomValue()Generate a random value for the given type.-
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
-
-
-
Constructor Detail
-
DoubleRandomizer
public DoubleRandomizer()
Create a newDoubleRandomizer.
-
DoubleRandomizer
public DoubleRandomizer(long seed)
Create a newDoubleRandomizer.- Parameters:
seed- initial seed
-
-
Method Detail
-
getRandomValue
public java.lang.Double getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-
-