correctly make use of randrange: 0 start was causing plugin failure