Class Rand
java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.math.Rand
-
Field Summary
Fields inherited from class ortus.boxlang.runtime.bifs.BIF
__functionName, __isMemberExecution, asyncService, cacheService, componentService, declaredArguments, functionService, interceptorService, moduleService, runtime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleReturn a random double between 0 and 1doubleReturn a random double between 0 and 1_invoke(IBoxContext context, ArgumentsScope arguments) Return a random double between 0 and 1Methods inherited from class ortus.boxlang.runtime.bifs.BIF
announce, getDeclaredArguments, invoke
-
Constructor Details
-
Rand
public Rand()Constructor
-
-
Method Details
-
_invoke
Return a random double between 0 and 1 -
_invoke
Return a random double between 0 and 1- Parameters:
seed- The seed to use for the random number generator- Returns:
- A random double between 0 and 1
-
_invoke
Return a random double between 0 and 1- Parameters:
algorithm- The algorithm to use to generate the random number.seed- The seed to use for the random number generator- Returns:
- A random double between 0 and 1
-