Rotate procedurally generated instinced static mesh component

I have a couple of tiles that I’ve made. I’m having them randomly generate across a 32 by 32 grid.
instead of making versions of the titles that are rotated on the z-axis… I’d like to find for each tile generated to have to have a random rotation while they’re being generated to save on the number of instanced static mesh component’s. but restricted to either 0 90 180 or 270 rotation.
I’m having a difficult time figuring a way to go about that.
I’ve been able to rotate and instinced static mesh component. But it ended up rotating all of that particular component.
So I’m not exactly sure how to give each generated component its own random rotation.

I’ve searched online and through these forums. Although I imagine this question ought to be fairly simple.
I myself haven’t found any examples.