public static DataTable getRandomDataTable(int tableNum, int numRows,
long randomSeed) {
random = new Random(randomSeed);
DataTable res = new DataTable();
res.addColumns(dataTables[tableNum].getColumnDescriptions());
res = res.clone(); // Clones the column descriptions.
try {
for (int i = 0; i < numRows; i++) {
TableRow row = new TableRow();
for (ColumnDescription colDesc : res.getColumnDescriptions()) {
Value value = toRandomValue(colDesc.getType());