Knowledgebase:
Randomize
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 16 July 2017 01:55 PM

Syntax

Public Sub Randomize(Optional Number As Double)

This sub procedure is used to initially seed the random number generator. Then, to generate a random number, you must use the MathRnd function.

Parameters

Key Description 
Number The new seed value.An optional value of type double.

Return value

No returned value.

Sample

Public Sub main()

' Initialize the random number generator.

Randomize  

AlertMessage MathRnd()*6+1 

  ' The result will be a random value of type double between 1 and 6 

End Sub


See Also


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions