private static List<TestTable> createTables(int dbs, int tbls) {
    Random rnd = new Random(20230815L);
    List<Integer> dbis = new ArrayList<>(dbs);
    for(int i = 0; i < dbs; ++i) {
      dbis.add(i);
    }
    Collections.shuffle(dbis, rnd);
    List<Integer> tblis = new ArrayList<>(tbls);
    for(int i = 0; i < tbls; ++i) {
      tblis.add(i);
    }
    if (SHUFFLE_TABLENAMES) {
      Collections.shuffle(tblis, rnd);
    }

    List<TestTable> tables  = new ArrayList<>(dbs * tbls);
    for(int d : dbis) {
      for(int t : tblis) {
        String dbname = String.format("db%05x", d);
        String tblName = String.format("tbl%05x", t);
        tables.add(new TestTable(dbname, tblName));
      }
    }
    return tables;
  }
Creates a list of tables.
@param dbs number of databases
@param tbls number of tables per database
@return a list of tables
ql/src/test/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/TestTablePermissionFilterAlgos.java