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


Five Random Letters
Many places on the web that invite users to register at their site never are certain who registered an e-mail address. To help ensure that the owner of the e-mail address is the actual one entering data into their site often an automatic e-mail is sent with a unique password.  The following example will produce five lowercase random letters.  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> Random Letters)</title>
<body bgcolor="#FFFFFF">

dim random_number, random_letter, counter, letters

' begin random function

' Begin a for next loop 
For counter = 1 to 5

' 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)

' Adds the most recent random letter to the letters string
letters=letters & random_letter

' Repeat loop

' write the random letters to the browser
response.write letters


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 - 2019
    All Rights Reserved

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