ASP Built In Functions
Home
Search
Tell a Friend

ABS()
Array()
ASC()
CHR()
CInt()
CStr()
Date()
DateAdd()
DateDiff()
DatePart()
DateSerial()
DateValue()
Day()
Fix()
FormatCurrency()
FormatDateTime()
FormatNumber()
FormatPercent()
Hour()
InStr()
InStrRev()
Int()
IsArray()
IsDate()
IsEmpty()
IsNull()
IsNumeric()
IsObject()
Join()
LBound()
LCase()
Left()
Len()
LTrim()
Mid()
Minute()
Month()
MonthName()
Now()
Replace()
RGB()
Right()
Rnd()
Round()
RTrim()
Second()
Space()
Split()
Sqr()
strComp()
String()
StrReverse()
Time()
TimeSerial()
TimeValue()
TypeName()
UBound()
UCase()
VarType()
WeekDay()
WeekDayName()
Year()


Rnd()
Purpose:
Returns a random number.
DataType:
Single
Syntax:
Rnd [ (number) ]
Arguments:
"number" is any valid numeric expression
Sample:
Randomize()
response.write RND
Result:
0.647381

Comments:
RND returns a value greater or equal to 0 but smaller than 1. Use the following function to create a random number in a given range:
Int((EndingNumber - StartingNumber + 1) * Rnd + StartingNumber)

Make sure to add Randomize() statement without an argu
Date Added: 1/9/2001

My3C's
perrychicker
It's easy... it's a PSACAKE!
Back | Tell A Friend | Search this Site
© 1998 - 2010 psacake.com
Version 3.23

Send me One Million FREE Guaranteed Visitors