Bug fix: rare bug from repeats of randint(1,1000000)