add random points function