Re: Unique value creation

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23236
interpreted = N
texte = I was thinking about the same problem a few weeks ago. I was going to try and use a combination of days/hours/mins/secs to establish a start value, then multiply that value times ten and then add a random number formatted to two digits. So that the result would be: days/hours/minsXX where xx would come from the random function. Is that achievable? Math functions always tax my feeble mind so I havn't gotten around to actually writing the WebDNA and trying this idea out. Marty Schmid Artwerks >I can use the number of days/hours/mins/secs in some form or other to >create a *nearly* unique identifier number for each user, but how do I >create a truly unique value for two people who access the site during the >exact same second in time? > >It seems both of these users will have the exact same value, so it won't >be unique -- unless I tack on some kind of sequential index number that >simply cannot be re-used again during the same second in time, even by >another user. > >Using [random] won't work because there's a chance that the same random >number might come up again, and this solution has to guarantee *absolute* >uniqueness no matter what. > >How does the [cart] tag do it? Maybe I can use a similar technique. The >result must be no more than 12 characters in length, thus the reason I >cannot use the [cart] tag in this situation ... > >Sincerely, >Ken Grome Associated Messages, from the most recent to the oldest:

    
  1. Unique value creation (Kenneth Grome 1999)
  2. Re: Unique value creation (Marty Schmid 1999)
I was thinking about the same problem a few weeks ago. I was going to try and use a combination of days/hours/mins/secs to establish a start value, then multiply that value times ten and then add a random number formatted to two digits. So that the result would be: days/hours/minsXX where xx would come from the random function. Is that achievable? Math functions always tax my feeble mind so I havn't gotten around to actually writing the WebDNA and trying this idea out. Marty Schmid Artwerks >I can use the number of days/hours/mins/secs in some form or other to >create a *nearly* unique identifier number for each user, but how do I >create a truly unique value for two people who access the site during the >exact same second in time? > >It seems both of these users will have the exact same value, so it won't >be unique -- unless I tack on some kind of sequential index number that >simply cannot be re-used again during the same second in time, even by >another user. > >Using [random] won't work because there's a chance that the same random >number might come up again, and this solution has to guarantee *absolute* >uniqueness no matter what. > >How does the [cart] tag do it? Maybe I can use a similar technique. The >result must be no more than 12 characters in length, thus the reason I >cannot use the [cart] tag in this situation ... > >Sincerely, >Ken Grome Marty Schmid

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

form data submission gets truncated (1997) Card clearance, problems - solutions? (1997) FM PRO Compatibility Issue - Single Database w/o Conversions (1997) Relay link (2002) Re:Merging databases (1997) Problems with dbcatalog.exe (1997) OT-Load balance (2004) WebCat2.0 [format thousands .0f] no go (1997) Undeclared variables (2004) Squares instead of spaces (2001) Change Subtotal (2000) & in Lookups (1997) WebTen and WebCat (1997) [OT] Google Info (2004) A multi-processor savvy WebCatalog? (1997) errormessages.db (1997) docs for WebCatalog2 (1997) Happy New Year (2002) encryption in browser? NOT (1998) WC2f3 (1997)