How to pick a random instance of an element from an array?

后端 未结 0 618
星月不相逢
星月不相逢 2021-02-01 22:32

For example, I have School[] testSchool = new School {Teacher, Student, Principal, Student, Janitor};, and I want to pick a random instance of student to preform a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题