Randomize entries of matrix