public MidPntDisplmnt(ref int[,] map, float smooth, int[,] seedVal, int randSeed)
 {
     this.smooth = smooth;
     this.map = map;
     if (randSeed == -1)
     {
         Random r = new Random();
         seed = r.Next();
     }
     else
         seed = randSeed;
     this.seedVal = seedVal;
     borderAction = zeroBorder;
 }
 public void SetBorderAction(BorderAction action)
 {
     borderAction = action;
 }