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 = List(1, 2, 3, 4, 5, 6) A(Random.nextInt(A.size))