random the length of test array