Name

Rand

Synopsis

                  
                  Rand( )

Returns a random number between 0 and 1. Here’s an example that returns a random number between 0 and 100:

<cfoutput>The random number is: #int(100*Rand( ))#</cfoutput>

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.