Is there a way to rotate a Quaternion?

I want to create a function which can rotate a Quaternion rotation in Y axis for a random number.
My script is listed below, but no luck.

function randomizeRotation( rotation :Quaternion)
{
     return(rotation.AngleAxis(Random.value,Vector3.up));
}

Any idea?

WARNING: UNTESTED!

function randomizeRotation ()
{
     return(Quaternion.AngleAxis(Random.value,Vector3.up));
}

something like this may work… I saw it in the car tutorial for rotating the wheels, but im yet to experiment with it more so it may not be applicable here…

return rotation * Quarternion.Euler(0, Random.value, 0);

Thanks Dantus, but your code just create a quaternion with random angle in Y axis, not rotate an exist Quaternion variable.

Many thanks jlcnz, your code solved my problems!

Glad to hear it.

Going to experiment with it more myself tbh. I had some rotation issues I found work arounds for previously, but were never ideal. Hoping this code solves my initial problems too!