function adding randomly distributed datapoints