- ASP - Random Functions
·Script Writers
·Database Display
·Response Objects
·Server Variables
·Random Events
·What's New?
Mail List


Random Number
The ability to produce a random number is an incredibly useful tool.  The following example will produce a random number between 1 and 9.  The limits are set by the numeric value placed after the asterisk  int(rnd*9) and the +1 ensures the range to be no lower than 1.  Refresh the content of the output page a few times for a more complete illustration.
View the Output
Text View
Print View
Mail this Link
Download the Code

<title> Number)</title>
<body bgcolor="#FFFFFF">
' begin random function

' random numbers is the varible that will contain a numeriv value
' between one and nine

' write the random number out to the browser
response.write random_number


Click <a href="<%= request.servervariables("script_name") %>">here</a> to refresh this page





ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement is hosted by
    Donate Food Online with a Mouse Click at
    Donate Land Online with a Mouse Click at
    © 1999 - 2018
    All Rights Reserved

  • Kids jordan 6 rings
  • Jordan retro 10
  • Jordan retro 3