Fix the randomizer to include end points for range