Fixed bug where math.random interval was empty