CodeAve.com CodeAve.com - ASP - Random Functions
ASP
·Read/Write
·Script Writers
·Database Display
·Response Objects
·Server Variables
·Random Events
·Articles
·Miscellaneous
·Contents
·What's New?
JavaScript
CSS
HTML
Maps
Links
Mail List
Search
Sitemap


 


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

<html>
<title>CodeAve.com(Five Random Letters)</title>
<body bgcolor="#FFFFFF">

<%
dim random_number, random_letter, counter, letters

' begin random function
randomize

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

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



<p>

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

</body>
</html>

 

 

 



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

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2017 CodeAve.com
    All Rights Reserved

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