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.

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.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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