Randomized block Kaczmarz Method and randomized extended block Kaczmarz Method are proposed for solving matrix equation AXB=C, where the matrix A and B may be full rank or rank deficient. These methods are iterative methods without matrix multiplication, and are especially suitable for solving large-scale matrix equations. It is theoretically proved these methods converge to the solution or least square solution of the matrix equation. The numerical results show that these methods are more efficient than the existing algorithms for high-dimensional matrix equations.