I tested this script for 10 minutes with 70 range
During this period of time no randoms occurred and the bot did not mess up.

I got 4.8k exp from 10 minutes