Fortuna fortuna = Fortuna.createInstance();
System.err.println("Generating image...");
BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
image.setRGB(x, y, fortuna.nextBoolean() ? 0xffffff : 0x000000);
}
}
String extension = args[2].substring(args[2].lastIndexOf('.') + 1);
ImageIO.write(image, extension, new File(args[2]));
}