changed random function and redraw test points