I wouldn't use 'randomize(GetTickCount())'

If your server happens to run too long without a reboot it will error
out...the Randomize will work until it acts on a GetTickCount  > than an
integer...once it's too large it will croak.

> this is actually what i'm doing
>
> <cfset x5 = randomize(GetTickCount())>
> <cfset x5 = Randrange(100000000, 999999999)>
> <cfset x5 = randomize(GetTickCount()) + #x5#>
> <cfoutput>
> <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#">
> </cfoutput>
>
> but I'll look into UUID, that sounds pretty cool
> -----Original Message-----
> From: Cameron Childress [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 11, 2000 1:59 PM
> To: CF-Talk
> Subject: RE: [slightly ot: math question, needed for cold fusion
> programming]
>
>
> I thought it was added in 4.0, but it might have been 4.0.1.  I think it
was
> added while Allaire was developing Spectra.  I guess is could be a 4.5
> thing, but I don't see it in the "new functions" page in my 4.5 docs.
Most
> RDBMS systems also have a comparable UUID type of functionality as well,
but
> using that will, tie you to the RDBMS platform to a certain extent.
>
> -Cameron
>
> --------------------
> Cameron Childress
> ElliptIQ Inc.
> p.770.460.7277.232
> f.770.460.0963
>
> > -----Original Message-----
> > From: Gavin Myers [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 11, 2000 2:43 PM
> > To: CF-Talk
> > Subject: RE: [slightly ot: math question, needed for cold fusion
> > programming]
> >
> >
> > is CreateUUID() a 4.5 feature? I dont see any reference to it in 4.0
> >
> > -----Original Message-----
> > From: Cameron Childress [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 11, 2000 1:33 PM
> > To: CF-Talk
> > Subject: RE: [slightly ot: math question, needed for cold fusion
> > programming]
> >
> >
> > I haven't really been watching CF-Talk that closely lately, so I may be
> > missing some info here, but...
> >
> > If you are in need of a random and unique ID, I would suggest using the
> > CreateUUID() function, not a timestamp.  It is unique across the
universe
> > and is only 35 characters long.  Also, if you actually store this
> > as a date
> > stamp in a database (which I'm not sure you are doing), I recall reading
> > that SQL 7 (and probably other RDBMS platforms as well) don't store date
> > stamps with millisecond precision, so the chances of dups would be much
> > higher.
> >
> > -Cameron
> >
> > --------------------
> > Cameron Childress
> > ElliptIQ Inc.
> > p.770.460.7277.232
> > f.770.460.0963
> >
> > > -----Original Message-----
> > > From: Gavin Myers [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, October 11, 2000 1:37 PM
> > > To: CF-Talk
> > > Subject: RE: [slightly ot: math question, needed for cold fusion
> > > programming]
> > >
> > >
> > > okay, that sounds good
> > >
> > > so the chances of two people getting the same timestamp is the
> > same as the
> > > packers making it to the superbowl.
> > >
> > > pretty much impossible.
> > >
> > > i'll put that in my report (using timestamp (thanks to whomever
> > suggested
> > > that awhile back) to create a series of random 60 digit
> > numbers, and their
> > > can never be duplicates).
> > >
> > > Thanks!
> > > Gavin
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, October 11, 2000 12:21 PM
> > > To: CF-Talk
> > > Subject: Re: [slightly ot: math question, needed for cold fusion
> > > programming]
> > >
> > >
> > > 1.4884 x 10^19
> > >
> > > Gavin Myers <[EMAIL PROTECTED]> wrote:
> > > Lets say you have 1 page that scores 1,000,000 unique visitors a month
> > >
> > > here's what I came up with:
> > >
> > > 1,000,000/30/24/60/60/1000 = 0.000385
> > >
> > > So that means that 0.0003 people a milisecond hit the sight, correct?
> > > what is the % chance of 2 people hitting on the same milisecond
> > (and math
> > > equation for that?)
> > > ------------------------------------------------------------------
> > > ----------
> > > --
> > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > > 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.
> >
> >
> > ____________________________________________________________________
> > Get free email and a permanent address at http://www.netaddress.com/?N=1
> > ------------------------------------------------------------------
> > ----------
> > --
> > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > 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.
> > ------------------------------------------------------------------
> > ------------
> > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > 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.
>
> --------------------------------------------------------------------------
--
> --
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> 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.
> --------------------------------------------------------------------------
--
> --
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> 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.
>
> --------------------------------------------------------------------------
--
> --
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> 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.
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> 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.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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