do you actually need the numbers to be random or just unique?
auto-incremented zero-filed integers of set length are available as 
datatype in some DBs (i.e. MySQL)... not random (they will be 
sequential), but unique to each record...

---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com



Les Irvin wrote:
> Is there a slick way to do this in CF?  Let's say I have a set of
> records - one field of which is for a unique and random 6 digit
> number.  When adding a new record, what the best way to assign its
> random number that's not already assigned to another record?
>
> Thanks in advance,
> Les
>
>   

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298786
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to