blob: a41bac7f87d29d87f288bb882826935e5185449d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import random
i=386371
l=51
o=open("expgroup.db", "w")
mx=20000
b=False
while (l < mx):
l+=1
value=l/random.randint(1,5)
#value=l+random.randint(1,5)
bonus=random.randint(-2,12)
fact=1+(1.0/value)
i=int(i*fact)+bonus
if (i >= pow(2,31)):
if not b:
print("Interruption at level %d: max int reached" % l)
b=True
i=pow(2,31)-1000+l
o.write('%d,' % i)
if l % 10 == 0:
o.write('\n')
o.close()
|