Returns a random decimal number in the range 0 - 1.
Rand()
To ensure greater randomness, call Randomize before calling Rand.
<!--- This example shows the use of Rand() ---> <html> <head> <title> Rand Example </title> </head> <body bgcolor = silver> <H3>Rand Example</H3> <P>Rand() returns a random number in the range 0 to 1. <P>Rand() returned: <cfoutput>#Rand()#</cfoutput> <P><A HREF = "rand.cfm">Try again</A> </body> </html>
LiveDocs comments are not longer enabled for ColdFusion 5.0. Please use one of the following resources instead.
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 5.0