MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / permute_randomly

Function permute_randomly

src/sorting/bogo_sort.rs:29–34  ·  view source on GitHub ↗

* Fisher–Yates shuffle for generating random permutation. */

(arr: &mut [T], len: usize, generator: &mut PCG32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

bogo_sortFunction · 0.85

Calls 1

generate_indexFunction · 0.85

Tested by

no test coverage detected