mardi 24 mars 2020

How can we get a randomly selected element from an array in Scala?

How can i find or get a randomly selected element from an array in Scala ???

The code for getting a random value is simple that is :

var rand :Int= scala.util.Random
println(rand.nextInt)



Aucun commentaire:

Enregistrer un commentaire