Skip to main content

Get-Random-Number

Command Description

Get a random number between 0 - 1

Command Prototype

dRet = Rnd()

Parameter Description

ParameterRequiredTypeDefaultDescription
NoneNoneNoneNoneNone

dRet,The variable used to save the output of the command.

Demo

TracePrint("----------------------------------take random numbers------- --------------------------") 
//-------------------------------------------------------------------------------
//[Remarks] Get a random number between 0-1
//Input parameters:
// None
//out parameters:
// random number
dRet = Rnd ()
TracePrint("Get a random number between 0-1, the result is: "&Cstr(dRet))