mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-16 23:34:42 +04:00
11 lines
200 B
Python
11 lines
200 B
Python
import secrets
|
|
|
|
with open("words.txt", "rt") as f:
|
|
lines = [l.strip() for l in f]
|
|
|
|
bits = secrets.randbits(300)
|
|
mx = len(lines)
|
|
while bits > 0:
|
|
print(lines[bits % mx], end=' ')
|
|
bits //= mx
|
|
print()
|