|
Scala Library
|
|
scala/util/Random.scala]
object
Random
extends RandomRandom offers a default implementation
of scala.util.Random and random-related convenience methods.| 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 |
coll - the Traversable to shuffle|
Scala Library
|
|