contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
function   UTIL_ExpRand    
      Other Library Functions  

Library: System Utilities
Include: omutil.xin
Returns: Numeric

Random numbers based on the exponential distribution.

Declaration

  define external counter function UTIL_ExpRand (value counter lambda)


Purpose

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

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:21 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.