test of compareArray
test of getRandVal