Restrict the scope of a random variable. There is no need of being member of the class (LabyrinthMatrix.cs). Give appropriate naming to random generator and random number.