Fix random point generation