Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random Number

Status
Not open for further replies.

ddfff

MIS
Sep 27, 2002
125
US
I need to generate a random whole number in a cfm template between 1 and 2000.

What would be the easiest way to do this?

Thanks in advance.
 
<cfset myRandomNumber = randRange(1, 2000)>

If you don't ask the right questions, you don't get the right answers. A question asked in the right way often points to its own answer. Asking questions is the ABC of diagnosis. Only the inquiring mind solves problems.

-Quote by Edward Hodnett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top