[#absl-c_shuffle]
= xref:absl.adoc[absl]::c&lowbar;shuffle
:relfileprefix: ../
:mrdocs:

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;shuffle()` function to randomly shuffle elements within the container using a `gen()` uniform random number generator&period;

== Synopsis

Declared in `&lt;absl&sol;algorithm&sol;container&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename RandomAccessContainer,
    typename UniformRandomBitGenerator&gt;
void
c&lowbar;shuffle(
    RandomAccessContainer& c,
    UniformRandomBitGenerator&& gen);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| The container whose elements to shuffle&period;
| *gen*
| The uniform random bit generator driving the shuffle&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
