Search DaTutorials:  
HOME
ASP Tutorials
Introduction
Reference
   Building ASP Pages
   Built-in Objects
Tutorials

Generate a random number

Description:


How to generate a random number using ASP and VB Script.

Code:

<html> <body> <%
Randomize()
Response.Write(Rnd())
%> </body> </html>

See working example:


Keywords:

ASP: Response.Write

VBScript: Rnd


     Free Advertising | Online Advertising | Online Advertising | Internet Advertising | Advertising
Home    Link To Us    Ad With Us    Contact Us    Tell A Friend    Affiliates    Blog    Stock Photos