[Issue 2898] Allow RandomCover to sample both w/ and w/o replacement.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Aug 8 13:03:36 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=2898
Andrei Alexandrescu <andrei at erdani.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
--- Comment #4 from Andrei Alexandrescu <andrei at erdani.com> ---
I'll close this. It's easy to get a random cover on a random-access range with
replacement:
auto r1 = generate!(() => r[r.length.uniform]);
Truth be told that's an input, not a forward range but we need to find
motivating applications for more elaborate approaches.
--
More information about the Digitalmars-d-bugs
mailing list