double question

<cfset x = Randrange(100000000, 999999999)>
<cfset x2 = Randrange(100000000, 999999999)>
<cfset y = Randrange(100000000, 999999999)>
<cfset y2 = Randrange(100000000, 999999999)>
<cfset ran = "#x##x2##y##y2#">

Question #1

i figgure the chances of hitting the same number twice is like 1 in 10x32

but as i remember with ye old BASIC programming:
In basic you never have a truly random number unless you create a random
number unless you
randomize timer
i'm assuming that this is done automatically with most programming languages
> 1984
does anyone know how cf gets its random number, does it run it off the
timer? what are the chances of hitting the same query the same .0000000001
second of another person? Or does it do more then run of the timer.

Question #2

Is the code i'm using above "fine"? Or should I use a different method to
get a random number (it can be random numbers and characters or whatever)?

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to