Hi,
I am trying to randomly place instances of the same prefab and giving each instance, based on its relative position to world space a different pivot rotation / direction. So the up vector should be different for each instance in the scene.
The code that calls Instantiate() to clone your prefab can supply a rotation.
Or you can write a small component script that chooses a rotation when it receives the Awake() call, and put that in the prefab’s root object so every clone made will run that code after the game is started.
If you want every prefab clone to be randomly placed in a scene in the Editor, it’s more difficult. I would check in OnValidate() if it has never been randomized, and if it’s in a regular stage instead of the Prefab Editing stage, and then randomize it once and set a private but serialized flag so it’s not randomized constantly.