On loaded is a trigger, you typically cannot include two triggers in event blocks.
So, in your case above, just create a separate top level event block with 'On loaded and set rotation', then as each is loaded, it will set a random rotation. Remove the 'Is loaded' from the loop.