mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
parent
5c72e68b7e
commit
4acf8e0667
@ -306,8 +306,7 @@ def random_words(lang='en', wordlist='combined', nwords=5, bits_per_word=12,
|
|||||||
"There aren't enough words in the wordlist to provide %d bits of "
|
"There aren't enough words in the wordlist to provide %d bits of "
|
||||||
"entropy per word." % bits_per_word
|
"entropy per word." % bits_per_word
|
||||||
)
|
)
|
||||||
selected = [random.choice(choices) for i in range(nwords)]
|
return ' '.join([random.choice(choices) for i in range(nwords)])
|
||||||
return ' '.join(selected)
|
|
||||||
|
|
||||||
|
|
||||||
def random_ascii_words(lang='en', wordlist='combined', nwords=5,
|
def random_ascii_words(lang='en', wordlist='combined', nwords=5,
|
||||||
|
Loading…
Reference in New Issue
Block a user