How to choose a random element from an array in Scala?

前端 未结 6 764
无人及你
无人及你 2020-12-13 23:08

For example, there is a Scala array val A = Array(\"please\", \"help\", \"me\"). How to choose a random element from this array?

6条回答
提交回复
热议问题