In WW2 at least a subset (like 1%) of dropped bombs (not shells) had a random timer and only exploded once that ran out. This was to ensure detonations occured even hours after a bombing raid.
Those timers were based on acids dissolving something inhibiting the detonator. As such they were quite unreliable, especially if they buried themselves into the ground at certain angles.
