阅读背景:

与6位随机字母数字代码发生碰撞的概率是多少?

来源:互联网 

I'm using the following perl code to generate random alphanumeric strings (uppercase letters and numbers, only) to use as unique identifiers for records in my MySQL database. The database is likely to stay under 1,000,000 rows, but the absolute realistic maximum would be around 3,000,000. Do I have a dangerous chance of 2 records having the same random code, or is it likely to happen an insignificantly small number of times? I know very little about probability (if that isn't already abundantly clear from the nature of this question) and would love someone's input.I'm using the following perl code to generate r




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: