Generate uniformly distributed random numbers.
Library
Sources
Description
The Uniform Random Number block generates uniformly distributed random numbers over a specifiable interval with a specifiable starting seed. The seed is reset each time a simulation starts. The generated sequence is repeatable and can be produced by any Uniform Random Number block with the same seed and parameters. To generate a vector of random numbers, specify the Initial seed parameter as a vector.
To generate normally distributed random numbers, use the Random Number block, described on Random Number.
Avoid integrating a random signal because solvers are meant to integrate relatively smooth signals. Instead, use the Band-Limited White Noise block.
Data Type Support
A Uniform Random Number block outputs a real signal of type double.
Parameters and Dialog Box

- Minimum
- The minimum of the interval. The default is
-1.
- Maximum
- The maximum of the interval. The default is
1.
- Initial seed
- The starting seed for the random number generator. The default is
0.
- Sample time
- The sample period. The default is
0.
Characteristics
Sample Time
|
Continuous, discrete, or inherited
|
Scalar Expansion
|
No
|
Vectorized
|
Yes
|
Zero Crossing
|
No
|
[ Previous | Help Desk | Next ]