-
-
Notifications
You must be signed in to change notification settings - Fork 489
Closed
Description
I was using rand::sample to shuffle an arbitrary number of elements from a list, until I noticed that the ordering was stable, and so no shuffling was happening, only random selection.
Is there reason to add such functionality to the crate? Or is the expected way of doing this shuffling, then slicing? Or sampling, then shuffling?
rand: 0.3.16
rustc: 1.21.0-nightly
cargo: 0.22.0-nightly
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels