Here's how I would do it.
Repeat 10 Times:
Gun: Spawn bullet
Bullet: Rotate random(-15,15) degrees clockwise
Bullet: Move forward random(0,15) pixels.
Obviously you'd play with those values to get a shotgun with the spread, number of bullets, etc you'd want. I added the last action so that the bullets look a little more random while they are flying.