dimanche 8 novembre 2015

Vbscript randomize with step

How to get random number in range (0,123) with step (5)

Do get random number in range (0,123) i do

Dim max,min
max=123
min=0
Randomize
response.write(Int((max-min+1)*Rnd+min))

But i need only steped 5 (0,5,10,15,20,...)




Aucun commentaire:

Enregistrer un commentaire