The OpenD Programming Language

MersenneTwisterEngine.seed

Seeds a MersenneTwisterEngine object using an InputRange.

  1. void seed(UIntType value)
  2. void seed(T range)
    struct MersenneTwisterEngine(UIntType, size_t w, size_t n, size_t m, size_t r, UIntType a, size_t u, UIntType d, size_t s, UIntType b, size_t t, UIntType c, size_t l, UIntType f)
    void
    seed
    (
    T
    )
    ()
    if (
    is(immutable ElementType!T == immutable UIntType)
    )
    if (
    isUnsigned!UIntType
    )

Throws

Exception if the InputRange didn't provide enough elements to seed the generator. The number of elements required is the 'n' template parameter of the MersenneTwisterEngine struct.

Meta