Table of Contents

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

OutputType Description
LREALOutput value

Application example