A random decimal number, in the range 0 - 1.
Rand()
To ensure greater randomness, call the Randomize function before calling Rand.
<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>
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6
Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt259.htm