Isaac's Lesser Missile Storm

Description
A number of energy missiles (one per caster level but to a maximum of 10) appear and randomly target and hit any creature in the area of effect. If there are more creatures than missiles, only the closest targets will be damaged. If there are more missiles than creatures, one of the creatures will be hit with multiple missiles. Each missile does 1d6 points of magical damage.