Fix randrange.