Diamagnetic behavior in random classical radiation