Documentation

RAND

Function name

RAND

ST call

PROGRAM RAND_DEMO
VAR
LR1: LREAL;
END_VAR
LR1:= RAND();
END_PROGRAM

Description

Returns a random value from the interval 0 to 1.

Outputs

Output Type Description
=> LREAL Output value

Application example