functionrandom

Return a random number with a uniform distribution in the range 0.0 < result <= 1.0

Extends from Modelica.Icons.Function (Icon for functions).

Information

This partial function defines the input and output arguments of a random(..) function of a random number generator package.

Inputs

TypeNameDefaultDescription
IntegerstateInThe internal states for the random number generator

Outputs

TypeNameDefaultDescription
RealresultA random number with a uniform distribution on the interval (0,1]
IntegerstateOutThe new internal states of the random number generator

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