@ 2023-05-06T00:33:07Z <?php
$kat_list=array(1,2,3,4);
shuffle($kat_list); // shuffle list
$count=3;
for($i=0; $i<$count; ++$i) {
// get the first N items of the shuffled list
printf("%d ", $kat_list[$i]);
}
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.2.5 3 4 1 Output for 8.0.10 , 8.2.1 , 8.2.4 3 2 4 Output for 8.0.26 , 8.1.13 , 8.2.3 2 4 1 Output for 8.0.21 , 8.2.2 3 1 2 Output for 8.0.8 , 8.1.1 , 8.1.3 , 8.2.0 1 4 2 Output for 8.0.23 , 8.0.25 , 8.1.17 - 8.1.18 3 1 4 Output for 8.0.14 , 8.1.16 2 3 4 Output for 8.0.18 , 8.0.27 , 8.1.7 , 8.1.15 2 1 3 Output for 8.0.12 , 8.1.10 , 8.1.14 1 3 2 Output for 8.1.12 2 1 4 Output for 8.0.2 , 8.0.5 , 8.1.9 , 8.1.11 1 3 4 Output for 8.0.15 - 8.0.16 , 8.1.0 , 8.1.8 4 2 1 Output for 8.1.6 3 4 2 Output for 8.0.24 , 8.1.5 2 4 3 Output for 8.1.2 , 8.1.4 4 3 2 Output for 8.0.13 , 8.0.28 4 1 3 Output for 8.0.22 1 2 4 Output for 8.0.3 , 8.0.9 , 8.0.20 1 2 3 Output for 8.0.1 , 8.0.19 3 2 1 Output for 8.0.7 , 8.0.11 , 8.0.17 2 3 1 Output for 8.0.6 1 4 3 preferences:dark mode live preview ace vim emacs key bindings
69.27 ms | 432 KiB | 5 Q