swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
      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.


Declaration

  define external integer function UTIL_ExpRand (value integer lambda)


Purpose

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
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:08:10 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.