[addresses] sample_alphabet (Zipfian) in PO box rather than a uniform choice
This commit is contained in:
@@ -25,7 +25,7 @@ class POBox(NumberedComponent):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def random_letter(cls, alphabet=latin_alphabet):
|
def random_letter(cls, alphabet=latin_alphabet):
|
||||||
return random.choice(alphabet)
|
return sample_alphabet(alphabet)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def phrase(cls, box_number, language, country=None):
|
def phrase(cls, box_number, language, country=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user