Grasshopper Pufferfish twisted box rotation

Hi guys, I’m trying to add a ‘random’ component that would modulate the rotation of source geometries in each individual twisted box division. I’m new to grasshopper, and not sure what the best way to do this would be. The existing twisted box creates an array of these bird-shaped elements, and I’m hoping to achieve independent rotation of each element about their own axes. I’ve started the part of the script that would randomize rotation angles, but I have no idea how to integrate it into the twisted box to get to the end result. Please help!
pufferfish_twisted box_rotation randomization.gh (31.4 KB)

This may be one way.

Hey, thank for the screenshot. I tried to plug it in and it seems like the birds are not rotating about their individual axes..

I attach the file.
pufferfish_twisted box_rotation randomization a.gh (30.2 KB)

Amazing, it works! I missed the graft on Box Corners. Thank you so much!