It is function, which generate  random array and do manipulation with him.