Class RandomDouble
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.defaultInstantiators.RandomDouble
-
-
Field Summary
Fields Modifier and Type Field Description private static booleantests
-
Constructor Summary
Constructors Constructor Description RandomDouble()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static booleanisInTests()Returns whether we are in test mode.static doublerandom()Returns a random double number.static booleansetInTests(boolean inTests)Allows to set the test flag.
-
-
-
Method Detail
-
setInTests
public static boolean setInTests(boolean inTests)
Allows to set the test flag.- Parameters:
inTests- whether we are running tests and constant numbers shall be returned- Returns:
- the value before setting the flag
-
isInTests
static boolean isInTests()
Returns whether we are in test mode.- Returns:
- whether we are running tests and constant numbers shall be returned
-
random
public static double random()
Returns a random double number.- Returns:
- a random double number
-
-