PhobosRandom.save

Phobos-style random interface.

save is only available when the underlying Engine has no indirections and has pure @safe opCall() and doesn't have an impure or @system destructor.

  1. enum bool isUniformRandom;
  2. enum Uint min;
  3. enum Uint max;
  4. enum bool empty;
  5. Uint front [@property getter]
  6. void popFront()
  7. void seed(A args)
  8. typeof(this) save [@property getter]
    struct PhobosRandom(Engine)
    @property const @trusted
    static if(!hasIndirections!Engine && is(typeof( () pure @(safe)())))
    typeof(this)
    save
    ()
    ()
    if ()

Meta