public void loadRandomRows(final Table t, final byte[] f, int rowSize, int totalRows)
    throws IOException {
    for (int i = 0; i < totalRows; i++) {
      byte[] row = new byte[rowSize];
      Bytes.random(row);
      Put put = new Put(row);
      put.addColumn(f, new byte[] { 0 }, new byte[] { 0 });
      t.put(put);
    }
  }
Load region with rows from 'aaa' to 'zzz'.
@param r     Region
@param f     Family
@param flush flush the cache if true
@return Count of rows loaded.
hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtil.java