Description

The USStateCapitalZipCodeGen Generator generates a state capital zip code for each of the 50 states within the USA and also searches for a USStateGen within the same Domain, matching up its values if one is found. It can be used to generate a 5 or 9-digit zip code. 


Generator Parameters

The following parameters may be configured for the USStateCapitalZipCodeGen Generator. Items with an asterisk* are required.

  • sortOrder* - Defines the sort order in which the state capital zip codes will be generated. The choices are Random or Alphabetical. 
  • autoReference* - When true, the USStateCapitalZipCodeGen Generator will automatically search for an Attribute above itself, within its Domain, that uses a matching US Generator and map the state capital zip code to the value generated. A matching Generator may be one of the following: 
    • USStateAbbrevGen
    • USStateCapitalGen
    • USStateCapitalAreaCodeGen
    • USStateGen

      When false, the state capital zip code will be listed in one of the following sortOrders:
      • Random
      • Alphabetical

  • seed - Using the seed will ensure that the same random state capital zip codes are generated each time data is generated. 

  • plusFourCode* - Determines whether to include the plus-four code. The default is "Exclude" and generates a 5-digit zip code. 



Sample Output

5 digit zip code


9 digit zip code