diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-06 23:13:25 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-06 23:13:25 -0300 |
commit | b9a1cb2af843392c1f8762cd98377a69ed37642d (patch) | |
tree | f0bbb3095bfccbf2f5bdff00c1465dae4d2e3bbb /exptable.py | |
parent | c64eb7c747b7a03358cb9373363009ff367052c9 (diff) | |
download | tools-b9a1cb2af843392c1f8762cd98377a69ed37642d.tar.gz tools-b9a1cb2af843392c1f8762cd98377a69ed37642d.tar.bz2 tools-b9a1cb2af843392c1f8762cd98377a69ed37642d.tar.xz tools-b9a1cb2af843392c1f8762cd98377a69ed37642d.zip |
This is the python script used to recreate exp database in a more fair manner
Diffstat (limited to 'exptable.py')
-rw-r--r-- | exptable.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/exptable.py b/exptable.py new file mode 100644 index 0000000..01b1be6 --- /dev/null +++ b/exptable.py @@ -0,0 +1,36 @@ +import random +from math import * +i=365914 +l=60 +o=open("expgroup.db", "w") + +mx=1000 +b=False + +while (l < mx): + l+=1 + if (l < 90): + i=int(i*1.1)+random.randint(-2,12) + elif (l < 120): + i=int(i*1.05)+random.randint(-2,12) + elif (l < 150): + i=int(i*1.02)+random.randint(-2,12) + elif (l < 270): + i=int(i*1.01)+random.randint(-2,12) + elif (l < 450): + i=int(i*1.006)+random.randint(-2,12) + elif (l < 650): + i=int(i*1.004)+random.randint(-2,12) + else: + i=int(i*1.002)+random.randint(-2,12) + + 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() |