Hello I am making a quiz game with 1 correct and 3 wrong answers, each having a button. But with this code, sometimes I get the same answers on two or more buttons at the same time, which I don’t want. How to make exception for each button to have different “WrongSymbol”?
int randomSymbol = Random.Range(0, 45);
ButtonText[0].text = WrongSymbol[randomSymbol];
randomSymbol = Random.Range(0, 45);
ButtonText[1].text = WrongSymbol[randomSymbol];
randomSymbol = Random.Range(0, 45);
ButtonText[2].text = WrongSymbol[randomSymbol];
randomSymbol = Random.Range(0, 45);
ButtonText[3].text = WrongSymbol[randomSymbol];
int randomButton = Random.Range(0, 3);
ButtonText[randomButton].text = WrongSymbol[currentQuestion.AnswerIndex];