Shuffling an integer sequence in Scala import util.Random.shuffle shuffle(1 to 10) foreach println Posted on Apr 14th, 2014