Osys_Random_Distribution_Handle_Create()
Abstract
Gets a handle to a distribution with specified arguments.
Syntax
Osys_Random_Distribution_Handle_Create (dist_name, dist_arg0, dist_arg1, options)
| Argument | Type | Description |
|---|---|---|
dist_name |
const char * |
Name of the distribution to use. |
dist_arg0 |
double |
Argument #0 of the distribution (or any valid double if not needed by the distribution). |
dist_arg1 |
double |
Argument #1 of the distribution (or any valid double if not needed by the distribution). |
options |
int |
Not used (set to any valid integer). |
Return Type
OsysT_Random_Distribution_Handle *
The requested distribution handle.
Header
osys_random.h
Details
This function returns a handle that can be used with Osys_Random_Distribution_Value_Generate() to obtain a random value based on the specified distribution and arguments.
dist_name is a string representing the name of a predefined or custom distribution. You can find a table of predefined distributions and their required arguments in “Predefined Distributions“ on page 3. You can create custom distributions with the PDF Editor (described in Chapter 13 “PDF Editor” on page 560).
The values of dist_arg0 and dist_arg1 are ignored when using a distribution that does not require them.