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

AVEVA™ InTouch HMI

产生随机数

  • Last UpdatedSep 24, 2024
  • 1 minute read

在脚本中,使用以下命令产生 0 到 255 之间的一个随机数:

OLE_CreateObject(%SR,"System.Random");

randtag = (%SR.NextDouble)*255;