PHP code example of jp3cki / fisher-yates-shuffle
1. Go to this page and download the library: Download jp3cki/fisher-yates-shuffle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jp3cki / fisher-yates-shuffle example snippets
function jp3cki\fisherYatesShuffle\shuffle as fy_shuffle;
$list = range(1, 10);
fy_shuffle($list);
var_dump($list);
t = range(1, 10);
\jp3cki\fisherYatesShuffle\shuffle::shuffle($list);
var_dump($list);