On Friday, 28 December 2018 at 03:59:52 UTC, Ali Çehreli wrote: > It's because randomSample returns either an input range or a > forward range depending both on the kind of range that it gets > and the random number generator used. Documented here: > Ali Thank you very much, now it all makes sense.