How to properly calculate shotgun spread?

I’ve implemented a function to make the spread “semi-fixed” random, dividing the spherical coordinates to multiple sections.

By doing this, bullets are not close to each other, respecting the distance between bullets.