|
||||||||||
|
||||||||||
Other Library Functions |
function | UTIL_ExpRand |
Library: omutil - miscellaneous system utilities
Include: omutil.xin |
Return type: Integer Returns: Random numbers based on the exponential distribution. |
define external integer function UTIL_ExpRand (value integer lambda)
This function generates random numbers based on the exponential distribution, the mean converging on lambda.
Example:
include "omutil.xin" process local integer lambda initial {20} local integer x local integer 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_Env UTIL_ExpRand UTIL_GetEnv UTIL_GetMilliSecondTimer UTIL_GetProcessId UTIL_IsVersionCompatible UTIL_LibraryVersion UTIL_Rand UTIL_Sleep UTIL_Srand UTIL_UniformRand |
---- |