fix compile error of  getRandomObject in  map
and add srand to  vector and map