IT SOLUTIONS
 ASP Classic
 ASP Classic Group Home eMag: ASP Classic WEEKLYLESSON MYGROUPSETTINGS
 Message Board
 ASP Classic KB
 ASP Classic To/From To/FromCODEGuides
 ASP Classic Study Test PRESTWOODCERTIFIED
 ASP Classic Store PRESTWOODSTORE Store Home Buy ASP Classic Items
 Members Only

#### Prestwood eMagazine

September Edition
Subscribe now! It's Free!

 ► KB ► Website Scri... ► ASP Classic ► Language Basics
From the March 2016 Issue of Prestwood eMag
 ASP Classic Language Basics:Random Numbers with Rnd and Randomize
Posted 14 years ago on 9/21/2007 and updated 1/10/2008
Take Away: Call randomize then call Rnd to generate a random number between 0 and 1.

#### KB100691

Call randomize then call Rnd to generate a random number between 0 and 1.

The following function generates a random number from LowNumber through HighNumber

`'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' SU_GetRandomNumber'' To generate an integer from 1 to 10...' Round(SU_GetRandomNumber(1, 10)) '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''Function SU_GetRandomNumber(LowNumber, HighNumber) RANDOMIZE SU_GetRandomNumber = ((HighNumber-1) - LowNumber+1) * Rnd+LowNumberEnd Function`

Share a thought or comment...
 PS_2594 Comment 1 of 1 Random numbers with rnd and randomize to show all the things which you are trying to showing with random numbers. Some of these random numbers are leaving for best essays but when you have a chance you have to check these things which is important to maintain but not all the numbers are important here. Posted 19 months ago