I\'m trying to write a function in Python that simulates a horse race. While there\'s no winner, it clears the screen, shows the list of horses (all have index starting at zero)
random.randint() is inclusive, so if you get a random integer that is equal to HORSE_NUM it will be out of bounds. try
rando = random.randint(0, HORSE_NUM - 1)