
<?php

error_reporting(-1);

$list1 = array("beautiful", "stinky", "cruel", "ugly", "brave", "smart");
$list2= array("woman", "man", "dog", "old man", "soldier", "noble man");
$list3= array("is lying", "is sitting", "sits", "wakes up", "is standing");
$list4= array("the Moon", "streets of London", "a railway station", "a pavement", "a tree", "the top of a mountain");
$list5= array("the fuck", "am I doing here", "have I been drinking", "future do I have", "is my destiny", "lady did I pick up last night");
$word1 = $list1[mt_rand(0,5)];
$word2 = $list2[mt_rand(0,5)];
$word3 = $list3[mt_rand(0,4)];
$word4 = $list4[mt_rand(0,5)];
$word5 = $list5[mt_rand(0,5)];
$he = "he";
$a = "A";
if ($word1 == "ugly") {$a = "An"; };
if ($word2 == "woman") { $he = "she"; };
echo "{$a} {$word1} {$word2} {$word3} on {$word4}. \"What {$word5}?\" said {$he}.";