add random matrix