diff --git a/Sources/Algorithms/RandomSample.swift b/Sources/Algorithms/RandomSample.swift index a42eccd2..59add665 100644 --- a/Sources/Algorithms/RandomSample.swift +++ b/Sources/Algorithms/RandomSample.swift @@ -143,9 +143,7 @@ extension Collection { formIndex(after: &i) } } - - // FIXME: necessary? - result.shuffle(using: &rng) + return result } @@ -213,9 +211,7 @@ extension Sequence { let j = Int.random(in: 0..