Get-Random-Number
Command Description
Get a random number between 0 - 1
Command Prototype
dRet = Rnd()
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
None | None | None | None | None |
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))