The Liar, the Random and Truth teller were captured and brainwashed to forget whether they always lie or tell truth or randomly answer.Everyone is handcuffed to a chair and gagged with gray, white and black scarf. Each one was given a phone with apps to guess who among them is the right Liar,the Random and Truth teller or else will be electrocuted. The apps below with 9 buttons will give them a painful electric shock every time they select a button that is a wrong guess. 4 shocks is fatal.Buttons must be pressed one at a time. The 3 correct buttons should be pressed.
1) The Liar will receive the shock if his guess is true. 2) The Truth teller will receive the shock if his guess is false. 3) The Random teller will receive the shock if 2 consecutive guesses are both true or both false.
What buttons should be pressed to survive, figure out everyone's identity with the fewest trials and shocks?