How to make bullets spray at 360 degrees?

Please check this thread for how to post code nicely on the forums: Using code tags properly