global proc helloRandom2()
{
string $nameList[] = {"Kelly","Sam","Chiharu","Liam","May","Jeremy"};
int $namePicker = rand(5.99999);
int $num = rand(10,60);
string $itemList[] = {"cats","dogs","fish","guinea pigs","frogs","donkeys","bottles of lotion","sheep","snakes","jar of pickles"};
int $itemPicker = rand(9.999999);
print ("Hello "+$nameList[$namePicker]+"!\n");
print ("You have "+$num+" "+$itemList[$itemPicker]+".\n");
print ("That's too many "+$itemList[$itemPicker]+".");
}
Comments