[#absl-c_shuffle] = xref:absl.adoc[absl]::c_shuffle :relfileprefix: ../ :mrdocs: Container‐based version of the <algorithm> `std::shuffle()` function to randomly shuffle elements within the container using a `gen()` uniform random number generator. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename RandomAccessContainer, typename UniformRandomBitGenerator> void c_shuffle( RandomAccessContainer& c, UniformRandomBitGenerator&& gen); ---- == Parameters [cols="1,4"] |=== | Name| Description | *c* | The container whose elements to shuffle. | *gen* | The uniform random bit generator driving the shuffle. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#