Packages

package random

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. random
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait RNG extends AnyRef
  2. type Rand[A] = (RNG) => (RNG, A)

    RNG state transition function.

  3. case class Rand48(modulus: Long, multiplier: Long, increment: Long, seed: Long) extends RNG with Product with Serializable

    A linear congruential generator which generates 32-bit values from 64-bit iterations, extracting bits 47..16 from each iteration.

  4. case class Xoshiro256ss(x: Long, y: Long, z: Long, w: Long) extends RNG with Product with Serializable

    Xoshiro256** pseudo-random number generator for 64-bit values.

    Xoshiro256** pseudo-random number generator for 64-bit values. Mnemonic for the PRNG algorithm name is "xor/shift/rotate with 256-bits state". See here for definition.

    This generator includes functions to significantly advance the current state (i.e. "jump") such that a LazyList of non-overlapping generators may be created to support sharding across multiple work streams without any individual work stream impacting the results produced by another.

    x

    State value #0.

    y

    State value #1.

    z

    State value #2.

    w

    State value #3.

Value Members

  1. object Definitions
  2. object Rand

    RNG state transition functions.

  3. object Rand48 extends Serializable
  4. object Xoshiro256ss extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped