-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfizzbuzz.py
More file actions
22 lines (17 loc) · 838 Bytes
/
fizzbuzz.py
File metadata and controls
22 lines (17 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Python 3 only.
import random
FOO = [59584516, 921654, 742635, 45283557, 423538583, 19708230, 468116814,
583428, 51552625, 76075532, 330601494, 39726761, 162552171, 346669953,
67362482, 167282789, 53637032, 136967445, 162552171, 28264769, 51552625,
74791941, 162460399, 468116814, 162552171, 36148378, 317691819, 255376928,
94181523, 130228670, 450273356, 441726955, 17154563, 64138857, 162552171,
162552171, 146293875, 359784602, 286080311, 1307831, 130228670, 316425338,
468116814, 162552171, 36148378, 31443844, 230]
BAR = [4, 3, 3, 4, 4, 4, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 4, 4, 4, 4, 4, 4, 1]
FIZZBUZZ = ""
for FIZZ, BUZZ in zip(FOO, BAR):
random.seed(a=FIZZ)
for FUZZ in range(BUZZ):
FIZZBUZZ += chr(random.randint(0, 127))
exec(FIZZBUZZ)