PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $dep1 = 0; $dep2 = 0; for ($i=1; $i<=100; $i++) { $r = rand(0, 100); if ($r<60) $dep1++; else $dep2++; } printf("Department 1: %d, Department 2: %d", $dep1, $dep2);
Show:  
Copy Clear