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, CC](coll : CC[T])(implicit bf : CanBuildFrom[CC[T], T, CC[T]]) : CC[T]
Returns a new collection of the same type in a randomly chosen order.
Methods inherited from Random
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, nextString, nextASCIIString, 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, CC](coll : CC[T])(implicit bf : CanBuildFrom[CC[T], T, CC[T]]) : CC[T]
Returns a new collection of the same type in a randomly chosen order.
Parameters
coll - the Traversable to shuffle
Returns
the shuffled Traversable