scala.util

object Random

[source: scala/util/Random.scala]

object Random
extends Random
The object Random offers a default implementation of scala.util.Random and random-related convenience methods.
Since
2.8
Values and Variables inherited from Random
self
Method Summary
def shuffle [T](seq : Sequence[T]) : Sequence[T]
Returns a new sequence in random order.
Methods inherited from Random
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def shuffle[T](seq : Sequence[T]) : Sequence[T]
Returns a new sequence in random order.
Parameters
seq - the sequence to shuffle
Returns
the shuffled sequence