|
|||||
function | UTIL_ExpRand |
Other Library Functions |
Library: System Utilities
Include: omutil.xin |
Returns: Numeric
Random numbers based on the exponential distribution. |
define external counter function UTIL_ExpRand (value counter lambda)
This function generates random numbers based on the exponential distribution, the mean converging on lambda.
Example:
declare function-library "omutil" include "omutil.xin" process local counter lambda initial {20} local counter x local counter i set i to 0 repeat exit when i > 100 increment i set x to UTIL_ExpRand(lambda) output "lambda: %d(lambda) i: %d(i) x: %d(x) %n" again
Other Library Functions UTIL_ExpRand UTIL_GetEnv UTIL_GetMilliSecondTimer UTIL_GetProcessId UTIL_LibraryVersion UTIL_Rand UTIL_Sleep UTIL_Srand UTIL_UniformRand |
---- |