ichi.maths

Rng

trait Rng extends AnyRef

Rng is the common supertrait of pseudorandom number generators. These are all inherently mutable and not thread-safe.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Rng
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def nextInt: Int

    Return the next Int from this random number stream.

  2. abstract def nextLong: Long

    Return the next Long from this random number stream.

  3. abstract def resetToDefault: Rng.this.type

    Sets this random number generator to its default initial state.

  4. abstract def seed(a: Array[Byte]): Rng.this.type

    Load stored state into the generator.

    Load stored state into the generator. The convention is that extra bytes are ignored, and a best-effort attempt is made to use overly short arrays to perform partial initialization.

  5. abstract def state: Array[Byte]

    Store the current state of the generator in an array of bytes.

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def doubles: Iterator[Double]

    Produce an endless stream of Doubles via an iterator

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def floats: Iterator[Float]

    Produce an endless stream of Floats via an iterator

  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. def ints: Iterator[Int]

    Produce an endless stream of Ints via an iterator

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def longs: Iterator[Long]

    Produce an endless stream of Longs via an iterator

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def nextDouble: Double

    Return the next Double in the range [0,1) from this random number stream.

    Return the next Double in the range [0,1) from this random number stream. Values are equally spaced. Based on nextLong shifted down to 53 bits.

  20. def nextFloat: Float

    Return the next Float in the range [0,1) from this random number stream.

    Return the next Float in the range [0,1) from this random number stream. Values are equally spaced. Based on nextInt shifted down to 24 bits.

  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def roll(n: Int): Int

    Produce a number in {0, 1, .

    Produce a number in {0, 1, ..., n-1}

  24. def rolls(n: Int): Iterator[Int]

    Produce an endless stream of numbers each drawn from {0, 1, .

    Produce an endless stream of numbers each drawn from {0, 1, ..., n-1} via an iterator

  25. def seedWithTime: Rng.this.type

    Seed the generator with the current time.

    Seed the generator with the current time. Sequential calls from the same thread produce different seeds.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped