@@ -0,0 +1,1023 @@
+package jetbrains.jetpad.model.id;%0A%0Aimport java.io.FileOutputStream;%0Aimport java.io.OutputStream;%0Aimport java.io.PrintWriter;%0A%0Apublic class BaseIdGenerator %7B%0A  private static final int DEFAULT_NUM_IDS = 5;%0A  private static final String USAGE = %22usage: num_ids file_to_save_in%22;%0A%0A  public static void main(String%5B%5D args) %7B%0A    int numIds;%0A    if (args.length %3E= 1) %7B%0A      try %7B%0A        numIds = Integer.parseInt(args%5B0%5D);%0A      %7D catch (Exception e) %7B%0A        System.out.println(USAGE);%0A        return;%0A      %7D%0A    %7D else %7B%0A      numIds = DEFAULT_NUM_IDS;%0A    %7D%0A%0A    OutputStream out;%0A    if (args.length %3E= 2) %7B%0A      try %7B%0A        out = new FileOutputStream(args%5B1%5D);%0A      %7D catch (Exception e) %7B%0A        System.out.println(USAGE);%0A        return;%0A      %7D%0A    %7D else %7B%0A      out = System.out;%0A    %7D%0A%0A    try (PrintWriter writer = new PrintWriter(out)) %7B%0A      for (int i = 0; i %3C numIds; i++) %7B%0A        writer.println(%22%5C%22%22 + new MyId().getId() + %22%5C%22%22);%0A      %7D%0A    %7D%0A  %7D%0A%0A  private static class MyId extends BaseId %7B%7D%0A%7D%0A

add BaseIdGenerator to generate random string ids