Getting A Random Date Between Two Given Dates In ColdFusion

<!--- Select 5 random dates. --->
<cfloop
	index="intI"
	from="1"
	to="5"
	step="1">
 
 
	<!---
		Get the random date. Since these values do not include
		time, they should only return random dates. However,
		since we are passing in the flag for time randomization,
		then this will select random dates and times.
	--->
	<cfset dtRandDate = RandDateRange(
		"05/01/2007",
		"05/20/2007",
		true
		) />
 
	<!--- Output the date. --->
	#dtRandDate#<br />
 
</cfloop>

For Cut-and-Paste