(PHP 8 >= 8.2.0)
Random\Randomizer::shuffleBytes — Get a byte-wise permutation of a string
$bytes
): string
Returns a uniformly selected permutation of the input bytes
.
Each possible permutation of the input bytes
is equally likely to be returned.
bytes
The string whose bytes are shuffled.
The input string will not be modified.
A permutation of the bytes of bytes
.
Random\Randomizer::$engine
.
Example #1 Random\Randomizer::shuffleBytes() example
<?php
/* ... */
?>
The above example will output something similar to:
...