Nine Celebrities died. The days of the month were:
function slotnumber()
{
srand(time());
for ($i=0; $i < 10; $i++)
{
$random = (rand()%31)+1;
$slot[] = $random;
}
print("$slot[0], ");
print("$slot[1], ");
print("$slot[2], ");
print("$slot[3], ");
print("$slot[4], ");
print("$slot[5], ");
print("$slot[6], ");
print("$slot[7] and ");
print("$slot[8]th");
}
?>
slotnumber();
?>