So I'm trying to make a range. Then make this array a range of 1,2,3,4. It will use the numbers 1-4., but I would like to shuffle those numbers for example:2,4,1,3. I'm getting stuck on the array range so far in php.
$range = range(1, 4)
$numbers = array($range);
$totalElements = count( $numbers );
for ( $i=0; $i < $totalElements; $i++ ) {
echo $numbers[$i];
if ( $i < $totalElements -1 ) echo ", ";