at random (無作為に): The teacher chose students at random for the quiz. (先生はクイズのために無作為に生徒を選びました。)

The teacher chose students at random for the quiz.