Use the more appropriate randint function