made RANDINT a bit simpler, may save a bit of cpu time?
Less X "lag", some output stuff to new thread
-O3 isn't always best, also start threading