RB insert. and Fixed bug: not random enough of gen_rand_arry