Minecraft wiki entry for Spawn, associated text: If spawning the mob would not exceed the population control or mob density caps, then the probability of a mob spawning can be calculated using the formula: (mob density cap - current mob density count) / mob density cap