<!--- This example shows the use of RandRange --->

<HTML>

<HEAD>
<TITLE>
RandRange Example
</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">

<H3>RandRange Example</H3>

<P>RandRange returns an integer between two specified integers.

<CFIF IsDefined("form.myInt")>
	<P>RandRange returned:
		<CFOUTPUT>#RandRange(form.myInt, form.myInt2)#</CFOUTPUT>
</CFIF>

<CFFORM ACTION="randrange.cfm" METHOD="POST">
<P>Enter the range:
<CFINPUT TYPE="Text" NAME="MyInt" VALUE="1" RANGE="1,100000000" MESSAGE="Please enter a value between 1 and 100,000,000" VALIDATE="integer" REQUIRED="Yes">
<CFINPUT TYPE="Text" NAME="MyInt2" VALUE="500" RANGE="1,100000000" MESSAGE="Please enter a value between 1 and 100,000,000" VALIDATE="integer" REQUIRED="Yes">
<P><INPUT TYPE="Submit" NAME="">


</CFFORM>


</BODY>

</HTML>       
