PLECS 3.5 Online Help

Random Numbers

Purpose

Generate uniformly distributed random numbers

Library

Control / Sources

Description

pict

The Random Numbers block generates uniformly distributed random numbers. The boundaries of the generated values can be configured in the component dialog. The figure below illustrates the distribution for two different sets of parameters.

pict

The seed of the generator initializes the algorithm at the simulation start. For the same seed, the sequence of random numbers is reproduced in every simulation run. If this behavior is undesired the system time can be used as a seed. To minimize correlation effects, it is recommended to use different seeds if multiple random generators are used in one model.

Parameters

Minimum
The lower boundary of the random numbers.
Maximum
The upper boundary of the random numbers.
Seed
The seed used to initialize the Random Numbers generator.
Sample Time
The sampling period used for generating random output values.

Reference

Mersenne Twister: http://en.wikipedia.org/wiki/Mersenne_twister