fork(1) download
  1. <?php
  2.  
  3.  
  4. $syllable = array(
  5. 1 => "ki",
  6. "ra",
  7. "ni",
  8. "mo",
  9. "si",
  10. "wo",
  11. "yo",
  12. "go",
  13. "ku",
  14. "da",
  15. "pa",
  16. "ru",
  17. "chi",
  18. "wa",
  19. "ha",
  20. );
  21. $t = array_rand($syllable, 4);
  22. echo "Dropped number $t[0], syllable: "; echo $syllable[$t[0]] . "\n";
  23. echo "Dropped number $t[1], syllable: "; echo $syllable[$t[1]] . "\n";
  24. echo "Dropped number $t[2], syllable: "; echo $syllable[$t[2]] . "\n";
  25. echo "Dropped number $t[3], syllable: "; echo $syllable[$t[3]] . "\n";
  26. echo "------\n";
  27. $syllable[$t[0]] .= $syllable[$t[1]];
  28. $syllable[$t[0]] .= $syllable[$t[2]];
  29. $syllable[$t[0]] .= $syllable[$t[3]];
  30. $name = $syllable[$t[0]];
  31. echo "I recommend the name $name, you will not be mistaken!";
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
Dropped number 8, syllable: go
Dropped number 9, syllable: ku
Dropped number 13, syllable: chi
Dropped number 14, syllable: wa
------
I recommend the name gokuchiwa, you will not be mistaken!