FastRandom

tinyscalautils.util.FastRandom
See theFastRandom companion class
object FastRandom extends FastRandom

A thread-safe, unseeded fast random number generator.

The implementation relies on ThreadLocalRandom, which can be shared across threads without contention. Java's fancier generators are not used.

This generator cannot be re-seeded (the setSeed method throws UnsupportedOperationException).

Attributes

Companion
class
Source
FastRandom.scala
Graph
Supertypes
class FastRandom
class Random
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
FastRandom.type

Members list

Value members

Inherited methods

Attributes

Inherited from:
Random

Attributes

Inherited from:
Random

Attributes

Inherited from:
Random

Attributes

Inherited from:
Random

Attributes

Inherited from:
Random

Attributes

Inherited from:
Random

Attributes

Inherited from:
Random

Attributes

Inherited from:
Random

Attributes

Inherited from:
Random
def nextFloat(): Float

Attributes

Inherited from:
Random

Attributes

Inherited from:
Random
def nextInt(n: Int): Int

Attributes

Inherited from:
Random
def nextInt(): Int

Attributes

Inherited from:
Random
def nextLong(n: Long): Long

Attributes

Inherited from:
Random
def nextLong(): Long

Attributes

Inherited from:
Random

Attributes

Inherited from:
Random

Attributes

Inherited from:
Random

Attributes

Inherited from:
Random
def shuffle[T, C](xs: IterableOnce[T])(implicit bf: BuildFrom[xs.type, T, C]): C

Attributes

Inherited from:
Random

Concrete fields

lazy val interruptible: Random

Interruptible variant, same as the interruptible extension, but cached for performance.

Interruptible variant, same as the interruptible extension, but cached for performance.

Attributes

Source
FastRandom.scala