View source code
Display the source code in std/random.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

std.random.MersenneTwisterEngine.seedImpl - multiple declarations

Function MersenneTwisterEngine.seedImpl

Implementation of the seeding mechanism, which can be used with an arbitrary State instance

static void seedImpl (
  UIntType value,
  ref Fiber.State mtState
) @nogc;

Function MersenneTwisterEngine.seedImpl

Implementation of the range-based seeding mechanism, which can be used with an arbitrary State instance

void seedImpl(T) (
  T range,
  ref Fiber.State mtState
)
if (isInputRange!T && is(Unqual!(ElementType!T) == UIntType));

Authors

Andrei Alexandrescu Masahiro Nakagawa (Xorshift random generator) Joseph Rushton Wakeling (Algorithm D for random sampling) Ilya Yaroshenko (Mersenne Twister implementation, adapted from mir-random)

License

Boost License 1.0.