Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

Randomize

  • Last UpdatedJul 18, 2023
  • 1 minute read

The Randomize statement initializes the random number generator.

It has one optional parameter number. This parameter can be any valid number and is used to initialize the random number generator. If you omit the parameter then the value returned by the Timer event is used as the default parameter to seed the random number generator.

Syntax

Randomize[number]

Timer

Example

Dim MValue
' Initialise random-number generator
Randomize
MValue = Int((6 * Rnd) + 1)
Print MValue

In This Topic
TitleResults for “How to create a CRG?”Also Available in