Modify function genRandomArr: Generate a random seed with current time in order to generate the real random integers.