1.

How will you get a random number between 0 and 1 in VBScript?

Answer»

Using Rnd function,which returns a random number between 0 and 1.

Example −

Dim num : num = -645.998651document.write("Rnd Result of num is : " & Rnd(num))& "<br/>" '0.5130115


Discussion

No Comment Found