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.

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.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com