final int IMG_WIDTH = 80;
final int IMG_HEIGHT = 60;
int count = (int) ((Double) randomCountIEd.getValue() + 0.5);
for (int i = 0; i < count; i++) {
RandomFlameGenerator randGen = RandomFlameGeneratorList.getRandomFlameGeneratorInstance((String) randomGenCmb.getSelectedItem(), true);
int palettePoints = 3 + (int) (Math.random() * 68.0);
boolean fadePaletteColors = Math.random() > 0.33;
RandomFlameGeneratorSampler sampler = new RandomFlameGeneratorSampler(IMG_WIDTH, IMG_HEIGHT, prefs, randGen, RandomSymmetryGeneratorList.NONE, RandomGradientGeneratorList.DEFAULT, palettePoints, fadePaletteColors, RandomBatchQuality.NORMAL);
project.getFlames().add(validateDancingFlame(sampler.createSample().getFlame()));
}