I would like to rotate a plane 90 degrees so it stays vertical & then randomize the z axis rotation with a slight rotation of the x and y as well, just need it to stay vertical.

I have tried this, but zero luck, open to any suggestions:

```
bpy.ops.transform.rotate(value=1.5708, orient_axis='X', orient_type='LOCAL', orient_matrix=((-0.833314, 0.552801, -1.07288e-06), (-0.290321, -0.437639, 0.850991), (0.470428, 0.709143, 0.52518)), orient_matrix_type='VIEW', constraint_axis=(True, False, False), mirror=True, use_proportional_edit=False, proportional_edit_falloff='SMOOTH', proportional_size=1, use_proportional_connected=False, use_proportional_projected=False)
random.seed(random.random())
z = random.randint(-100,100)
plane.rotation_mode = 'XYZ'
plane.rotation_euler = (0,0,z)
```

example :