[addresses] sample_alphabet (Zipfian) in PO box rather than a uniform choice

This commit is contained in:
Al
2016-04-28 13:07:16 -04:00
parent 61f13d72f2
commit 8edddfb4d5

View File

@@ -25,7 +25,7 @@ class POBox(NumberedComponent):
@classmethod
def random_letter(cls, alphabet=latin_alphabet):
return random.choice(alphabet)
return sample_alphabet(alphabet)
@classmethod
def phrase(cls, box_number, language, country=None):