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