Des: The Rnd function returns a random number. The number is always less than 1 but greater or equal to 0.
Syntax:
Rnd[(number)]
Examples:
1. Finding Random number
Msgbox Rnd
2. Finding Random number from given range of values.
Syntax:
Rnd[(number)]
Parameter
|
Description
|
number
|
Optional. A valid numeric expression
If number is:
|
2.Different types random numbers getting
Randomze
Msgbox Rnd
Dim max,min
max=300
min=4
Randomize
Msgbox Int((max-min+1)*rnd+min)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.