added loop to random point test