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


Random Letter
Producing a random letter is almost as easy to accomplish as producing a random number.  When producing a random letter the first question you need to answer is do you want a random upper or lower case letter.  The example below will produce a random number between 0 and 26 and that value will have 97 added to it to produce a number between 97 and 122.  A letter from the list of special characters (Click here for more info on special characters) is placed in the random_letter variable.  Uppercase letters can be created by changing the 97 to 65.  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> Letter)</title>
<body bgcolor="#FFFFFF">

dim random_number, random_letter

' begin random function

' select a number between 26 and 97
random_number = Int(26 * Rnd + 97)

' take the numeric and turn it into a character
random_letter = Chr(random_number)

' write the random letter to the browser
response.write random_letter


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