How to make a Random Quaternion.

I am in the process of instantiating spheres in the random position and random quaternion.

Using Random class , random position is done by multiplying random.value with transform.position.

However, multiplying quaternion with transform.rotation can’t be done.

How to make it???

Simple, for position you use function Random.Range, and for quaternion use this. For, example(write on CSharp):

 yourSphere.rotation = Quaternion.Euler(Randon.Range(0.0f, 360.0f), Randon.Range(0.0f, 360.0f), Randon.Range(0.0f, 360.0f));

Quaternion.Euler(x, y, z) is three angles of axes x, y, z. Or use Random.rotation:

 yourSphere.rotation = Random.rotation;