79611351

Date: 2025-05-07 20:14:41
Score: 0.5
Natty:
Report link
<?
$array = ['one', 'two', 'three', 'four'];
$n = 10;
$arr=array_fill(0, ceil($n/count($array)), $array);
$arr=array_merge(...$arr);
shuffle($arr);
$arr=array_slice($arr,0,$n);
print_r($arr);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sergey Soltanov