Random camera orientation

I want the cameras orientation to be randomized at the start of the game, in order to disorient any repeat players. But I only want the x axis to be randomized, I don’t want them to start out staring at the sky, or at the ground. Any suggestions?

Assuming you meant “y axis”:

transform.Rotate (Vector3.up * Random.Range(0.0, 360.0));