Choose random
$arraycount = count($array);for($i = 0; $i < 3; $i++) // note the 3 here{ $random = rand(0, $arraycount); $array[$random] = "New Content :O!";}
$cnt = count($games); while($l <= 3) // note the 3 here { $random = rand(0, $cnt); if ($games[$random] != $adcode) { $games[$random] = $adcode; $l++; } }
Home | | News | Rules | FAQ |
The time is now 06:32 PM (GMT).
Powered by: vBulletin Version 3.8.4 Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.