<?php rand(): int
<?php if (empty($values)) { $maxSelectValues = sizeof($options) - 1; $minSelectValues = rand(0, $maxSelectValues); foreach (range($minSelectValues, $maxSelectValues) as $optValue) { $options[$optValue]->click(); }