Source/NFX/Parsing/NaturalTextGenerator.cs
/// <summary>
/// Generates a string that resembles a city/state/zip in a US address.
/// The states/zips are NOT consistent
/// </summary>
Generates a string that resembles a city/state/zip in a US address.
The states/zips are NOT consistent
Generates a string that resembles a city / state / zip in a US address . The states / zips are NOT consistent
public static string GenerateUSCityStateZip()
    {
      var state =  US_STATES[(0x7fFFFFFF & ExternalRandomGenerator.Instance.NextRandomInteger) % US_STATES.Length];
      var zip = ExternalRandomGenerator.Instance.NextScaledRandomInteger(0, 99999);
      return "{0}, {1} {2:D5}".Args(GenerateCityName(), state, zip);
    }
public static string GenerateUSCityStateZip ( ) { var state = US_STATES [ ( 0x7fFFFFFF & ExternalRandomGenerator . Instance . NextRandomInteger ) % US_STATES . Length ] ; var zip = ExternalRandomGenerator . Instance . NextScaledRandomInteger ( 0 , 99999 ) ; return " " . Args ( GenerateCityName ( ) , state , zip ) ; }
Generates a string that resembles a city/state/zip in a US address.
Generates a string that resembles a city / state / zip in a US address .