How to generate account number?

Michael Torrie torriem at gmail.com
Sat Nov 3 10:50:58 EDT 2012


On 11/02/2012 03:13 PM, Andriy Kornatskyy wrote:
> 
> Requirements for `account number` generator:
> 
> 1. Issue pseudo random consistent number (must be unique for dozen millions of records)
> 2. Easy check validity (without a need to make a database call)
> 
> Interested? Read more here:
> 
> http://mindref.blogspot.com/2012/11/generate-account-number.html
> 
> Comments or suggestions are welcome.

Thank you for sharing.  Your post came along at just the right time.  I
was just pondering on how to create a number that is unique each time
(or most of the time), and unlikely to be guessed ahead of time.  Your
technique should work very well for me.



More information about the Python-list mailing list