CODE
$result=rand(0,9);
$description[0]="hi";
$description[1]="hiya";
/*description filled with random stuff. so on until 10 entries are made*/
switch($result)
{
case 0:
echo $description[0];
break;
//and so on
}
$description[0]="hi";
$description[1]="hiya";
/*description filled with random stuff. so on until 10 entries are made*/
switch($result)
{
case 0:
echo $description[0];
break;
//and so on
}
is there a more simple,less code laden way to do this?
