You shouldn't do that. Bullets aren't supposed to be "random". A bullet direction depends on player movement direction, type of material the player is on (ground, air, water, etc.), player's velocity and maybe some other things I can't remember right now.
Then again you could just add that random angles but it's a sloppy way of doing it. Realism would have nothig to do with it in this case.