Link to home
Start Free TrialLog in
Avatar of Chiclets
Chiclets

asked on

Randomize function

How do I generate first  four digit number using randomize function in vbscript?
ASKER CERTIFIED SOLUTION
Avatar of Ara
Ara

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of robbert
robbert

Randomize
strRnd = Replace(Rnd(1), ".", "") ' assumed that your decimal seperator is .
strRnd = Mid(strRnd, 1, 4)
Avatar of Chiclets

ASKER

Thanks a lot Ara.