| Contents | Index |
Sources
The Uniform Random Number block generates uniformly distributed random numbers over an interval that you specify. To generate normally distributed random numbers, use the Random Number block.
You can generate a repeatable sequence using any Uniform Random Number block with the same nonnegative seed and parameters. The seed resets to the specified value each time a simulation starts.
Avoid integrating a random signal, because solvers must integrate relatively smooth signals. Instead, use the Band-Limited White Noise block.
The numeric parameters of this block must have the same dimensions after scalar expansion. If you select the Interpret vector parameters as 1-D check box and the numeric parameters are row or column vectors after scalar expansion, the block outputs a 1-D signal. If you clear the Interpret vector parameters as 1-D check box, the block outputs a signal of the same dimensionality as the parameters.
The Uniform Random Number block accepts and outputs a real signal of type double.
For more information, see Data Types Supported by Simulink in the Simulink documentation.

Specify the minimum of the interval. The default is -1.
Specify the maximum of the interval. The default is 1.
Specify the starting seed for the random number generator. The default is 0.
The seed must be 0 or a positive integer. Output is repeatable for a given seed.
Specify the time interval between samples. The default is 0.1. See How to Specify the Sample Time in the Simulink documentation for more information.
If you select this check box and the other parameters are row or column vectors after scalar expansion, the block outputs a 1-D signal. Otherwise, the block outputs a signal of the same dimensionality as the other parameters. For more information, see Determining the Output Dimensions of Source Blocks in the Simulink documentation.
Sample Time | Specified in the Sample time parameter |
Scalar Expansion | Yes, of parameters |
Dimensionalized | Yes |
Multidimensionalized | Yes |
Zero-Crossing Detection | No |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |