| Communications Blockset™ | ![]() |
Random Data Sources sublibrary of Comm Sources
The Random Integer Generator block generates uniformly distributed random integers in the range [0, M-1], where M is the M-ary number defined in the dialog box.
The M-ary number can be either a scalar or a vector. If it is a scalar, then all output random variables are independent and identically distributed (i.i.d.). If the M-ary number is a vector, then its length must equal the length of the Initial seed; in this case each output has its own output range.
If the Initial seed parameter is a constant, then the resulting noise is repeatable.
The output signal can be a frame-based matrix, a sample-based row or column vector, or a sample-based one-dimensional array. These attributes are controlled by the Frame-based outputs, Samples per frame, and Interpret vector parameters as 1-D parameters. See Signal Attribute Parameters for Random Sources in Communications Blockset™User's Guide for more details.
The number of elements in the Initial seed parameter becomes the number of columns in a frame-based output or the number of elements in a sample-based vector output. Also, the shape (row or column) of the Initial seed parameter becomes the shape of a sample-based two-dimensional output signal.

Opening this dialog box causes a running simulation to pause. See Changing Source Block Parameters in the online Simulink® documentation for details.
The positive integer, or vector of positive integers, that indicates the range of output values.
The initial seed value for the random number generator. The vector length of the seed determines the length of the output vector.
The period of each sample-based vector or each row of a frame-based matrix.
Determines whether the output is frame-based or sample-based. This box is active only if Interpret vector parameters as 1-D is unchecked.
The number of samples in each column of a frame-based output signal. This field is active only if Frame-based outputs is checked.
If this box is checked, then the output is a one-dimensional signal. Otherwise, the output is a two-dimensional signal. This box is active only if Frame-based outputs is unchecked.
The output type of the block can be specified as a boolean, int8, uint8, int16, uint16, int32, uint32, single, or double. By default, the block sets this to double. Single outputs may lead to different results when compared with double outputs for the same set of parameters. For Boolean typed outputs, the M-ary number must be 2.
randint (Communications Toolbox)
![]() | Random Deinterleaver | Random Interleaver | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |