Changed randrange to randint