Removed syntax error from randomLoc

Changed numLocs to numLocations to make program compile.