I’m going to pose this question as a sort of mental exercise or riddle, in order to make it easier to explain.
There are 3 actors.
Randomly choose 1 of those actors.
If the chosen actor is touching a different, specified actor, then choose a different actor from among the 3 until one is chosen that is not touching a different, specified actor.
From there, you can perform other tasks and executions with the use of the chosen actor.
One could possibly construct such a thing with the use of a select, a loop and/or a get class?