Is there a simple shuffle function for Scala lists?
If not, whats the simplest way to implement?
I have a lot of these things to do all over the code, so the simpler the call, the best it is
An example in Ruby
a = [ 1, 2, 3 ] #=> [1, 2, 3]
a.shuffle #=> [2, 3, 1] returns new array shuffled
Thanks in advance :)