Degrees of Freedom for a Class of MIMO Networks with Random Medium Access Control Mechanism