Calls sparse_mat::init_rand() to randomly initialising the nonzero pattern of the offdiagonal elements. The average number of nonzeros per row is conn, and the standard deviation of the number of nonzeros is sigma.