Make the randint API consistent with random.