rotation range?

Hello. How can I have an object instantly rotate to a random degree anywhere between 90 and 270 locally (so whichever way it is facing now would be considered zero degrees)? Thanks

You could try:

`
var randomAngle;

function RandomRotate() { randomAngle = Random.Range( 90.0, 270.0 ); transform.Rotate( Vector3.up, randomAngle ); //Vector3.up is the Y-axis but any Vector3 will work }

`

Also, the Transform.Rotate reference page has more info that might help.