- Joined
- 2 Mar 2002
- Messages
- 1,572
This is probably more of a math question than anything else, but does anyone know of the probability of mt_rand() coming up with two identical values? Note that I am using mt_rand to generate a unique identifier for an item, and store that in a database. As the number of items grows, the probability grows, but how long before this becomes a problem?