<!--- This example shows the use of Randomize --->
<HTML>
<HEAD>
<TITLE>
Randomize Example
</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">
<H3>Randomize Example</H3>

<P>Call Randomize to seed the random number generator. 
This helps to ensure the randomness of numbers generated 
by the Rand function.
<CFIF IsDefined("form.myRandomInt")>
	<CFIF IsNumeric(form.myRandomInt)>
	    <cfoutput><p><b>Seed value is #form.myRandomInt#</b></cfoutput><BR>
        <CFSET r=Randomize(form.myRandomInt)>
	    <cfloop index="i" from="1" to="10" step="1">
		   <cfoutput>Next random number is #Rand()#</cfoutput><BR>
	    </cfloop><BR>
	<CFELSE>
		<P>Please enter a number.
	</CFIF>
</CFIF>
<FORM ACTION="randomize.cfm" METHOD="POST">
<P>Enter a number to seed the randomizer:
<INPUT TYPE="Text" NAME="MyRandomInt">
<P><INPUT TYPE="Submit" NAME="">
</FORM>

</BODY>
</HTML>       
