Re: customer ids
| From: | Zoltán Németh | Date: | Wed, 06 Jun 2007 14:50:54 +0000 |
| Subject: | Re: customer ids | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256181@lists.php.net to get a copy of this message | ||
have you looked at the archives??? I don't think so.
try this link:
http://marc.info/?l=php-general&w=2&r=1&s=random+unique+id&q=b
greets
Zoltán Németh
2007. 06. 6, szerda keltezéssel 15.40-kor blueboy ezt írta:
> Hi,
>
> I want to create random customer ids. I have an auto incremented coulumn but
> I would rather have a 6-8 digit/letter id randomly generated that can be
> used as a unique identifier across 3 tables. Does anyone have a algorithm to
> generate such a string and can you give the odds against 2 duplicate stings
> being generated?
>
> I know this is a strange ask.
>
>
> R.
>