added randomInt formula