ASP/VBScript Rnd() Returns a random number.
ShotDev Focus:
- Using Asp and Rnd() function.
Example
asp_rnd.asp
<% Option Explicit %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Response.write Rnd()&"<br>" Response.write Rnd()&"<br>" Response.write Rnd()&"<br>" Response.write Rnd()&"<br>" Response.write Rnd()&"<br>" %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_rnd.asp
Screenshot