Rotating camera is very bad antiban if you ask me, you should prefer being more idle compared to doing pointless actions. (Just my opninion )
Maybe if you can move it with the mouse instead of the arrow keys it might be usefull
This is how I used to do it in the past if you still wanna do it anyway
Well either you can rotate completely random:
getCamera().moveYaw(Utils.randInt(0, 359));
or based around your current angle:
getCamera().moveYaw((getCamera().getYawAngle() + Utils.randInt(-90, 90)) % 360);
The Utils.randInt() is just a random number generator between 2 values incase you were wondering