1000 times an application that allows the server to assign ip from the server as a result of the trial
function assignIP() { $ip_pool = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; $ip_pool_length = count($ip_pool); $used_ip_pool = []; for ($i=0; $i < 1000; $i++) { $use_ip = $ip_pool[rand(0, $ip_pool_length - 1)]; $used_ip_pool[] = $use_ip; } $counts = array_count_values($used_ip_pool); ksort($counts); echo "<pre>"; print_r($counts); echo "</pre>"; }