Random function (Xorshift implement).