Create generator.py

This commit is contained in:
Ankur Sundara 2017-03-11 00:30:58 -06:00 committed by GitHub
parent afd661e85e
commit 55f65cac5d

11
library/generator.py Normal file
View file

@ -0,0 +1,11 @@
import random
C = input()
if C==1:
print 1
elif C==2:
print 2
elif C==3 or C==4:
print random.randint(3, 100)
else:
print random.randint(2**(C**3-1), 2**(C**3))