20-sim webhelp > Library > Signal > Stochastic > SignalGenerator-RandomInteger


SignalGenerator-RandomInteger

Navigation:  Library > Signal > Stochastic >

SignalGenerator-RandomInteger

Previous pageReturn to chapter overviewNext page

Library

Signal\Stochastic

Use

Domains: Discrete, Continuous. Size: 1-D. Allowed in: Block Diagrams.

Description

This model generates uniformly distributed random integers in the range [0, m-1], where m is an integer. All output random variables are independent and identically distributed. With the parameter random seed you can choose to make the distribution variable or fixed for each simulation run.

RandomInteger

RandomInteger output with a frequency of 1 Hz and m = 5.

The output signal is limited to a maximum frequency, which can be adjusted (parameter). Values in-between two samples are interpolated (first order hold).

Interface

Outputs

Description

output

 

Parameters

 

seed

m

frequency

random seed

the output range [0, m-1]

frequency band of the output

 

Limitations

seed must be a number in the region <0,65000>.