@Override
public void run() {
try {
Random rand = new Random();
Scanner scanner = new IsolatedScanner(conn.createScanner(table, Authorizations.EMPTY));
for (int i = 0; i < 20; i++) {
int numRows = rand.nextInt(10) + 1;
ArrayList<ByteSequence> changes = new ArrayList<ByteSequence>(numRows);
ArrayList<ConditionalMutation> mutations = new ArrayList<ConditionalMutation>();
for (int j = 0; j < numRows; j++)
changes.add(rows.get(rand.nextInt(rows.size())));
for (ByteSequence row : changes) {
scanner.setRange(new Range(row.toString()));
Stats stats = new Stats(scanner.iterator());
stats.set(rand.nextInt(10), rand.nextInt(Integer.MAX_VALUE));
mutations.add(stats.toMutation());
}
ArrayList<ByteSequence> changed = new ArrayList<ByteSequence>(numRows);