Generating random angles

Imagine this:

You have a variable named currentDir, this is a value in radians, an existing direction of a specific object.

You want to then, from that currentDir, generate a new angle that is in the +/-90 degree range (+/-1.57 radians). How would this be possible? I’m in the middle of writing a function to return this value… but my head is cabbaged, and it’s cold… close to Christmas… you can imagine… :wink:

Second question in two days… I hope nobody executes me :P.

Thanks in advance.