# Create a variable to store how many random were generated at the end.
$howmany = 0;
$total = 0;

while ($total < 27) {
   $random = int(rand(11));
   $howmany++;
   $total += $random;
}
print " Finished: I generated $howmany random numbers.\n";