Random Number Generator

The Random Generator block generates random values in the specified value range.

Table of Contents


Inputs↑

AbbreviationSummaryDescriptionValue Range
CCreates a random value0/1
DisPcDisable periphery controlLocks (C)0/1




Outputs↑

AbbreviationDescriptionValue Range
RanRandom value∞




Parameters↑

AbbreviationSummaryDescriptionValue RangeDefault Value
MinMinimum value∞0
MaxMaximum value∞10
StsStep sizeSpecifies the interval between possible random values, starting at (Min). Must be greater than 0. Values that would exceed (Max) are not generated.∞1



Step size examples↑

Examples:
(Min)=0, (Max)=10, (Sts)=1: 0, 1, 2, ..., 10
(Min)=10, (Max)=11, (Sts)=0.1: 10, 10.1, 10.2, ..., 11
(Min)=0, (Max)=1, (Sts)=0.3: 0, 0.3, 0.6, 0.9