spire.random

global

object global extends WellPrng

Global PRNG object.

Due to possible use by several threads, this object synchronizes on all PRNG access. To reduce possible lock contention, individual threads may instantiate their own WellPrng instances, which are no synchronized.

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

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 copy(): WellPrng

    Generates a copy of this PRNG (with independent state).

    Generates a copy of this PRNG (with independent state).

    Definition Classes
    WellPrng
  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. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  14. var i: Int

    Definition Classes
    WellPrng
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def m1: Int

    Definition Classes
    WellPrng
    Annotations
    @inline()
  17. final def m2: Int

    Definition Classes
    WellPrng
    Annotations
    @inline()
  18. final def mat0neg(t: Int, v: Int): Int

    Definition Classes
    WellPrng
    Annotations
    @inline()
  19. final def mat0pos(t: Int, v: Int): Int

    Definition Classes
    WellPrng
    Annotations
    @inline()
  20. final def mat3neg(t: Int, v: Int): Int

    Definition Classes
    WellPrng
    Annotations
    @inline()
  21. final def mat4neg(t: Int, b: Int, v: Int): Int

    Definition Classes
    WellPrng
    Annotations
    @inline()
  22. final def ne(arg0: AnyRef): Boolean

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

    Generates a random integer using n bits of state (0 <= n <= 32).

    Generates a random integer using n bits of state (0 <= n <= 32).

    Definition Classes
    WellPrng
  24. def nextBoolean(): Boolean

    Generates a random Boolean.

    Generates a random Boolean.

    Definition Classes
    WellPrng
  25. def nextBytes(bytes: Array[Byte]): Unit

    Initializes the given byte array to random bytes.

    Initializes the given byte array to random bytes.

    Definition Classes
    WellPrng
  26. def nextDouble(): Double

    Generates a random double in the interval 0.

    Generates a random double in the interval 0.0 (inclusive) to 1.0 (exclusive).

    Definition Classes
    WellPrng
  27. def nextFloat(): Float

    Generates a random float in the interval 0.

    Generates a random float in the interval 0.0 (inclusive) to 1.0 (exclusive).

    Definition Classes
    WellPrng
  28. def nextInt(): Int

    Generates a random int.

    Generates a random int. All 32-bit int values are equally likely.

    Definition Classes
    globalWellPrng
  29. def nextInt(n: Int): Int

    Generates a random int between 0 (inclusive) and n (exclusive).

    Generates a random int between 0 (inclusive) and n (exclusive). All values should be equally likely.

    Definition Classes
    WellPrng
  30. def nextLong(): Long

    Generates a random long.

    Generates a random long. All 64-bit long values are equally likely.

    Definition Classes
    WellPrng
  31. final def notify(): Unit

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

    Definition Classes
    AnyRef
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. final def v0(i: Int): Int

    Definition Classes
    WellPrng
    Annotations
    @inline()
  36. final def vm1(i: Int): Int

    Definition Classes
    WellPrng
    Annotations
    @inline()
  37. final def vm2(i: Int): Int

    Definition Classes
    WellPrng
    Annotations
    @inline()
  38. final def vrm1(i: Int): Int

    Definition Classes
    WellPrng
    Annotations
    @inline()
  39. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from WellPrng

Inherited from AnyRef

Inherited from Any

Ungrouped