User`s guide

Random Source
5-358
5Random Source
Purpose Generate randomly distributed values.
Library DSP Sources
Description The Random Source block generates a frame of M values drawn from a uniform
or Gaussian pseudorandom distribution, where M is specified by the
Samples
per frame
parameter.
This reference page contains a detailed discussion of the following Random
Source block topics:
“Distribution Type” on page 5-358
“Output Data Type” on page 5-359
“Output Repeatability” on page 5-360
“Specifying the Initial Seed” on page 5-360
“Sample Period” on page 5-361
Distribution Type
When the Source type parameter is set to Uniform, the output samples are
drawn from a uniform distribution whose minimum and maximum values are
specified by the
Minimum and Maximum parameters, respectively. All values
in this range are equally likely to be selected. A length-N vector specified for
one or both of these parameters generates an N-channel output (M-by-N
matrix) containing a unique random distribution in each channel.
For example, specify
Minimum = [ 0 0 -3 -3]
Maximum = [10 10 20 20]
to generate a four-channel output whose first and second columns contain
random values in the range [0, 10], and whose third and fourth columns
contain random values in the range [-3, 20]. When only one of the
Minimum
and
Maximum parameters is specified as a vector, the other is scalar expanded
to the same length.
When the
Source type parameter is set to Gaussian, the output samples are
drawn from the normal distribution defined by the
Mean and Variance
parameters. A length-N vector specified for one or both of the
Mean and