cpp/algorithm/random shuffle

Reorders the elements in the given range such that each possible permutation of those elements has equal probability of appearance.

@1@ The source of randomness is implementation-defined, but the function std is often used.

@2@ The source of randomness is the function object.

@3@ The source of randomness is the object.

Return value
(none)

Complexity
Linear in the distance between and.

Possible implementation
See also the implementations in libstdc++ and libc++.