Object/Class

scalaprops

TinyMT32

Related Docs: class TinyMT32 | package scalaprops

Permalink

object TinyMT32 extends Serializable

TinyMT is a pseudo random number generator.

To get an instance, call TinyMT32.getDefault

This class supports jump function. User can get an array of pseudo random number generators by calling TinyMT32#getDefaultArray

Source
TinyMT32.scala
See also

TinyMT web page

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TinyMT32
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def getDefault(): TinyMT32

    Permalink

    Factory method which returns the TinyMT with the first generated parameter of TinyMTDC.

    Factory method which returns the TinyMT with the first generated parameter of TinyMTDC. System#nanoTime and Thread#getId() are used for seed.

    returns

    TinyMT with the first parameter.

  11. def getDefault(seeds: Array[Int]): TinyMT32

    Permalink

    get default TinyMT32 with seeding by array.

    get default TinyMT32 with seeding by array.

    seeds

    seeds for initialization.

    returns

    random number generator TinyMT32

  12. def getDefault(seed: Long): TinyMT32

    Permalink

    Factory method which returns the TinyMT with the first generated parameter of TinyMTDC.

    Factory method which returns the TinyMT with the first generated parameter of TinyMTDC.

    seed

    seed of pseudo random numbers.

    returns

    TinyMT with the first parameter.

  13. def getDefault(seed: String): TinyMT32

    Permalink

    Factory method which returns the TinyMT with the first generated parameter of TinyMTDC.

    Factory method which returns the TinyMT with the first generated parameter of TinyMTDC.

    seed

    seed of pseudo random numbers.

    returns

    TinyMT with the first parameter.

  14. def getDefaultArray(count: Int, seed: String, jump: Long): Array[TinyMT32]

    Permalink

    Make and return an array of TinyMT.

    Make and return an array of TinyMT. Each element has the same characteristic polynomial with TinyMT gotten by getDefaultMT. Especially, the first element is just same as default TinyMT. The second element has the state of jump * 264 steps after the first element. In other word, the first element will generate the same sequence with the second element, after jump * 264 pseudo random number generation.

    This is equals to TinyMT32.getDefault(seed).getJumpedArray(count, jump);

    count

    number of TinyMT to be created.

    seed

    seed of first element

    jump

    step is jump * 264

    returns

    array of TinyMT

  15. def getDefaultArray(count: Int, seed: Long, jump: Long): Array[TinyMT32]

    Permalink

    make and return an array of TinyMT.

    make and return an array of TinyMT. Each element has the same characteristic polynomial with TinyMT gotten by getDefaultMT. Especially, the first element is just same as default TinyMT. The second element has the state of jump * 264 steps after the first element. In other word, the first element will generate the same sequence with the second element, after jump * 264 pseudo random number generation.

    count

    number of TinyMT to be created.

    seed

    seed of first element

    jump

    step is jump * 264

    returns

    array of TinyMT

  16. def getThreadLocal(threadId: Long): TinyMT32

    Permalink

    return TinyMT32 instance whose parameter has ID = 1.

    return TinyMT32 instance whose parameter has ID = 1.

    threadId

    thread ID

    returns

    TinyMT32 instance

  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped