code: function (options) {
      var i, j, length, rows, cols, mines, mineArray = [];
  
      options = options || {};
      rows = options.rows || 10;
      cols = options.cols || options.rows || 10;
      mines = options.mines || parseInt((rows * cols) * 0.15, 10) || 0;
      length = rows * cols;
  
      for (i = 0; i < length; i++) {
        if (i < mines) {
          mineArray.push(1);
        } else {
          mineArray.push(0);
        }
      }
  
      mineArray = fisherYatesShuffle(mineArray);
      mineArray = singleToMultiDimensionalArray(mineArray, cols);
      
      return mineArray;
    }
docs: generateMineArray