Generate a randon number
 
 
Code Result
<% Randomize %>
<% =Rnd() %>
0.829159

 
 

Geting a three digits integer randon number

<% Randomize %>
<% =INT(Rnd ()*1000) %>
746

Geting a six digits integer randon number

<% Randomize %>
<% =INT(Rnd ()*1000000) %>
526036

AspTutorial.info.