add random matrix function