pops the next random value
Saves the forward range
import std.algorithm.comparison : equal; import std.range : drop, take; auto r = Random!uint(1234); auto r_forward = r.save; assert(equal(r.take(5), r_forward.take(5))); r = r.drop(7); assert(r != r_forward); r_forward = r.save; assert(r == r_forward); assert(equal(r.take(4), r_forward.take(4)));
Generates a pseudo random sequence