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]+"."); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter