(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.
bytesThe string whose bytes are shuffled.
The input string will not be modified.
A permutation of the bytes of bytes.
Random\Randomizer::$engine 的
Random\Engine::generate() 方法抛出的任何 Throwable。
示例 #1 Random\Randomizer::shuffleBytes() example
<?php
/* ... */
?>
以上例程的输出类似于:
...