How to make mobs spawn around player or other mob

I want to have a system so I can run the summon command to spawn whatever I want within a certain radius of the player or mob.
Continue to help post