public static void main(String[] args) throws IOException {

        PrintWriter writer = new PrintWriter("C:\\output.txt");
        for (int i = 10; i <= 12; i++) {
            HashMapRandom randomInt = new HashMapRandom(i);
            randomInt.random(writer);
        }
        writer.close();
    }