public void initEmptyRowsRandomly()

in src/main/java/com/twitter/sbf/core/SparseBinaryMatrix.java [103:112]


  public void initEmptyRowsRandomly(Random rng) {
    this.reset();
    for (int i = 0; i < this.numRows; i++) {
      if (this.rows[i] == null || this.rows[i].length == 0) {
        int randomColId = rng.nextInt(this.numCols);
        this.rows[i] = new int[]{randomColId};
        this.getColumn(randomColId).add(i);
      }
    }
  }