Support 805.461.7300
Sales
Our Technology. Your Success.

Generate a random number of any length

Download and unzip the file linked below directly to your C:\Program Files (x86)\AccuZIP6 5.0 folder.
https://www.accuzip.com/files/forum/genrandom.zip

Import your list, and create a field that you want the number to be stored in using Edit menu>Fields. The field LENGTH determines the highest random number that will be generated. If the field length is 4, then the highest number could be 9999. Character fields are padded with 0, e.g., 0001

Click on Edit>Command, and run this syntax, substituting the word fieldname with the actual field name you created:

=GenRandom("fieldname")


Click Run.

You can then close the command window, and you'll see a random number filling that field, and they will all be 100% unique.
 

« Back to Commands

"I recently ended probably the most helpful chat ever with your employee Aurora Crouch! She was so extremely thorough and made sure that the install and setup of Accuzip was ready to go. She was also so patient and polite as I fumbled around trying to remember how a PC works! I honestly can't say enough about how amazing and helpful and kind she was! I appreciate her help so very much, she is a great employee and makes it so easy for people like me (who have no idea what they are doing) to get things set up as they need to be. Thank you so much for all of your help and for having someone like Aurora on staff, she is literally a godsend!"
C.C., Savannah, GA