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


     Personal Loans | Loans | Web Advertising | Internet Advertising | Free Ringtones
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp