fork download
  1. <?php
  2.  
  3.  
  4. $word1 = array(1 => 'Чудесных', 2 => 'Суровых', 3 => 'Занятных', 4 => 'Внезапных');
  5. $word2 = array(5 => 'слов', 6 => 'зим', 7 => 'глаз', 8 => 'дней', 9 => 'лет', 20 => 'мир', 11 => 'взор');
  6. $word3 = array(12 => 'прикосновений', 13 => 'поползновений', 14 => 'судьбы явлений',
  7. 15 => 'сухие листья', 16 => 'морщины смерти', 17 => 'долины края', 18 => 'замены нету',
  8. 19 => 'сухая юность', 20 => 'навек исчезнув');
  9. $word4 = array(21 => 'обретаю', 22 => 'понимаю', 23 => 'начертаю', 24 => 'закрываю', 25 => 'оставляю',
  10. 26 => 'вынимаю', 27 => 'умираю', 28 => 'замерзаю', 29 => 'выделяю');
  11. $word5 = array(30 => 'очертания', 31 => 'безысходность', 32 => 'начертанья', 33 => 'смысл жизни',
  12. 34 => 'вирус смерти', 35 => 'радость мира');
  13.  
  14. $w1 = mt_rand(1, count($word1));
  15. $w12 = mt_rand(1, count($word1));
  16.  
  17. $w2 = mt_rand(5, count($word2));
  18. $w22 = mt_rand(5, count($word2));
  19.  
  20. $w3 = mt_rand(12, count($word3));
  21. $w32 = mt_rand(12, count($word3));
  22.  
  23. $w4 = mt_rand(21, count($word4));
  24. $w5 = mt_rand(30, count($word5));
  25.  
  26. echo "$word1[$w1] $word2[$w2] $word3[$w3],\n
  27. $word1[$w12] $word2[$w22] $word3[$w32],\n
  28. Я $word4[$w4] $word5[$w5].";
Success #stdin #stdout #stderr 0.02s 52472KB
stdin
Standard input is empty
stdout
Чудесных зим ,

    Занятных слов ,

    Я  .
stderr
PHP Warning:  mt_rand(): max(9) is smaller than min(12) in /home/O7kqwh/prog.php on line 21
PHP Warning:  mt_rand(): max(9) is smaller than min(12) in /home/O7kqwh/prog.php on line 22
PHP Warning:  mt_rand(): max(9) is smaller than min(21) in /home/O7kqwh/prog.php on line 24
PHP Warning:  mt_rand(): max(6) is smaller than min(30) in /home/O7kqwh/prog.php on line 25
PHP Notice:  Undefined offset: 0 in /home/O7kqwh/prog.php on line 27
PHP Notice:  Undefined offset: 0 in /home/O7kqwh/prog.php on line 28
PHP Notice:  Undefined offset: 0 in /home/O7kqwh/prog.php on line 29
PHP Notice:  Undefined offset: 0 in /home/O7kqwh/prog.php on line 29