Class FloatRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.AbstractRandomizer<java.lang.Float>
-
- org.jeasy.random.randomizers.number.FloatRandomizer
-
- All Implemented Interfaces:
Randomizer<java.lang.Float>
public class FloatRandomizer extends AbstractRandomizer<java.lang.Float>
Generate a randomFloat.- 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 FloatRandomizer()Create a newFloatRandomizer.FloatRandomizer(long seed)Create a newFloatRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.FloatgetRandomValue()Generate a random value for the given type.-
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
-
-
-
Constructor Detail
-
FloatRandomizer
public FloatRandomizer()
Create a newFloatRandomizer.
-
FloatRandomizer
public FloatRandomizer(long seed)
Create a newFloatRandomizer.- Parameters:
seed- initial seed
-
-
Method Detail
-
getRandomValue
public java.lang.Float getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-
-