<?php $t = range(1, 32, 1); while (!empty($t) && count($g) < 4) { $key = array_rand($t); $g[] = $t[$key]; unset($t[$key]); } var_dump($g);
You have javascript disabled. You will not be able to edit any code.