//define data for record generation: //100 possible middle initials, 52 letters and 48 blanks SetMiddleInitials := 'ABCDEFGHIJKLMNOPQRSTUVWXYZ ' + 'ABCDEFGHIJKLMNOPQRSTUVWXYZ '; //1000 First names SET OF STRING14 SetFnames := [ 'TIMTOHY ','ALCIAN ','CHAMENE ', ... ]; //1000 Last names SET OF STRING16 SetLnames := [ 'BIALES ','COOLING ','CROTHALL ', ... ];
These sets define the data that will be used to generate the records. By providing 1,000 first and last names, this code can generate 1,000,000 unique names.
//2400 street addresses to choose from SET OF STRING31 SetStreets := [ '1 SANDHURST DR ','1 SPENCER LN ', ... ]; //Matched sets of 9540 City,State, Zips SET OF STRING15 SetCity := [ 'ABBEVILLE ','ABBOTTSTOWN ','ABELL ', ... ]; SET OF STRING2 SetStates := [ 'LA','PA','MD','NC','MD','TX','TX','IL','MA','LA','WI','NJ', ... ]; SET OF STRING5 SetZips := [ '70510','17301','20606','28315','21005','79311','79604', ... ];
Having 2400 street addresses and 9540 (valid) city, state, zip combinations provides plenty of opportunity to generate a reasonable mix of addresses.