for (Map.Entry<String, TickCache> tickEntry : tickCaches.entrySet()) {
if (random.nextInt(1000) > 200) {
continue;
}
TickCache tickCache = tickEntry.getValue();
Tick newTick = generateTick(tickCache.getNewestEntry());
tickCache.add(newTick);
tickEvent.fire(newTick);
}
}