The OpenD Programming Language

MersenneTwisterEngine.seed

Seeds a MersenneTwisterEngine object. Note: This seed function gives 2^w starting points (the lowest w bits of the value provided will be used). To allow the RNG to be started in any one of its internal states use the seed overload taking an InputRange.

  1. void seed(UIntType value)
    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)
    @safe pure nothrow @nogc
    void
    seed
    ()
    (
    UIntType value = defaultSeed
    )
    if (
    isUnsigned!UIntType
    )
  2. void seed(T range)

Meta