Updated random point set generation code