Add random 90 degree rotations to all MASH objects. To use the code, simply copy and paste it into the Python node.

The below variation will give you random Y rotation, you can use the same idea to adjust the X and Z rotations as well if you need to.