Skip to content

Instantly share code, notes, and snippets.

@ryanguill
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save ryanguill/2173bc74fac85bb323f0 to your computer and use it in GitHub Desktop.

Select an option

Save ryanguill/2173bc74fac85bb323f0 to your computer and use it in GitHub Desktop.
<!--- works properly --->
<cfdump var="randRange(0,2^31-2): #randRange(0,2^31-2)#"/><br />
<!--- returns a negative number every time --->
<cfdump var="randRange(0,2^31-1): #randRange(0,2^31-1)#"/><br />
<!--- The following line errors (expectedly) with
Parameter validation error for the RANDRANGE function.
The value of parameter 2, which is currently 2147483648, must be a int value. --->
<!--- <cfset x = randRange(0,2^31) /> --->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment