packagePartialGenerator

Interfaces of a uniform random number generator

Extends from Modelica.Icons.Package (Icon for standard packages).

Information

This partial package defines the elements and function interfaces of a pseudo random number generator package. A random number generator package must inherit from this partial package and adapt the constant nState to the correct length of the state vector.

Parameters

TypeNameDefaultDescription
IntegernStateThe dimension of the internal state vector

Contents

NameDescription
initialStateReturn the initial internal states for the uniform random number generator
randomReturn a random number with a uniform distribution in the range 0.0 < result <= 1.0

Revisions

Date Description
June 22, 2015
DLR logo Initial version implemented by A. Klöckner, F. v.d. Linden, D. Zimmer, M. Otter.
DLR Institute of System Dynamics and Control