Package com.singularsys.jep.functions
Class Random
java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.NullaryFunction
com.singularsys.jep.functions.Random
- All Implemented Interfaces:
PostfixMathCommandI
,Serializable
Encapsulates the Math.random() function.
For multiple thread usage see com.singularsys.jep.misc.threadsafeeval.ThreadSafeRandom, not included in GWTJep
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
-
Constructor Summary
-
Method Summary
Methods inherited from class com.singularsys.jep.functions.NullaryFunction
instanceOf, run
Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
-
Constructor Details
-
Random
public Random()
-
-
Method Details
-
eval
Description copied from class:NullaryFunction
Evaluate the function- Specified by:
eval
in classNullaryFunction
- Returns:
- value of the function
-