ichi.maths

RngLong3State

trait RngLong3State extends Rng

A trait for random number generators storing three Longs' worth of state.

Linear Supertypes
Rng, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RngLong3State
  2. Rng
  3. AnyRef
  4. 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.

    Return the next Int from this random number stream.

    Definition Classes
    Rng
  2. abstract def nextLong: Long

    Return the next Long from this random number stream.

    Return the next Long from this random number stream.

    Definition Classes
    Rng
  3. abstract def resetToDefault: RngLong3State.this.type

    Sets this random number generator to its default initial state.

    Sets this random number generator to its default initial state.

    Definition Classes
    Rng
  4. abstract def seedLLL(l1: Long, l2: Long, l3: Long): RngLong3State.this.type

    Sets the state of the generator with three Longs.

  5. abstract def stateL1: Long

    The first third of the current state packed into a Long

  6. abstract def stateL2: Long

    The second third of the current state packed into a Long

  7. abstract def stateL3: Long

    The final third of the current state packed into a Long

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

    Produce an endless stream of Doubles via an iterator

    Definition Classes
    Rng
  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( classOf[java.lang.Throwable] )
  12. def floats: Iterator[Float]

    Produce an endless stream of Floats via an iterator

    Produce an endless stream of Floats via an iterator

    Definition Classes
    Rng
  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

    Produce an endless stream of Ints via an iterator

    Definition Classes
    Rng
  16. final def isInstanceOf[T0]: Boolean

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

    Produce an endless stream of Longs via an iterator

    Produce an endless stream of Longs via an iterator

    Definition Classes
    Rng
  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.

    Definition Classes
    Rng
  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.

    Definition Classes
    Rng
  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}

    Definition Classes
    Rng
  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

    Definition Classes
    Rng
  25. def seed(a: Array[Byte]): RngLong3State.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.

    Definition Classes
    RngLong3StateRng
  26. def seedWithTime: RngLong3State.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.

    Definition Classes
    Rng
  27. def state: Array[Byte]

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

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

    Definition Classes
    RngLong3StateRng
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Rng

Inherited from AnyRef

Inherited from Any

Ungrouped