Issue 10265 - RandomSample fails when passed an InputRange as input

Issue fixed by making presence of save() property conditional on input being a ForwardRange.