modify the way points are randomly chosen