abettersolutionbyencapsulatingtheirlocalstatesasoneormoremembervariables. For thisreason, the algorithms change the state of the passed generator while generating a new random number. The following example demonstrates how to shuffle elements by calling random_shuffle() without passing a random-number generator or by using shuffle