This different behaviour was problem created since: https://issues.dlang.org/show_bug.cgi?id=11738. Does anyone know what the intended behaviour is/was?
partialShuffle only shuffles subset.
BlackEdder via Digitalmars-d-learn Tue, 19 May 2015 03:06:07 -0700
The documentation seems to indicate that partialShuffle:
Partially shuffles the elements of r such that upon returning
r[0..n] is a random subset of r, (which is what I want), but it
seems that partialShuffle actually only shuffles the first subset
of the range (which you could do probably also do by
[0..n].randomShuffle).
- partialShuffle only shuffl... BlackEdder via Digitalmars-d-learn
- Re: partialShuffle on... Ivan Kazmenko via Digitalmars-d-learn
- Re: partialShuffl... Joseph Rushton Wakeling via Digitalmars-d-learn