Osys_Random_Distribution_Value_Generate()
Abstract
Gets a random value based on a specified distribution.
Syntax
Osys_Random_Distribution_Value_Generate (dist_ptr, gen_ptr)
| Argument | Type | Description |
|---|---|---|
dist_ptr |
OsysT_Random_Distribution_Handle * |
Distribution to use. |
gen_ptr |
OsysT_Random_Stream_Handle * |
Random generator stream to use. |
Return Type
double
Random value from the specified distribution.
Header
osys_random.h
Details
This function uses the specified random generator stream (created with Osys_Random_Stream_Handle_Create()) to obtain a uniformly distributed random number in [0, 1.0). It then uses this random number to generate an outcome using the specified distribution.