<?php
$lastDigit = mt_rand(100000, 999999);
echo "Номер поста {$lastDigit}.\n";
$numPost = $lastDigit % 10;
if ($numPost == 0) {
echo "Еще разок.\n";
} elseif ($numPost == 1) {
echo "Нет.\n";
} elseif ($numPost == 2) {
echo "Да.\n";
} elseif ($numPost == 3) {
echo "Это не важно.\n";
} elseif ($numPost == 4) {
echo "Спок, бро.\n";
} elseif ($numPost == 5) {
echo "Толсто.\n";
} elseif ($numPost == 6) {
echo "Да, хотя зря.\n";
} elseif ($numPost == 7) {
echo "Никогда.\n";
} elseif ($numPost == 8) {
echo "100%.\n";
} elseif ($numPost == 9) {
echo "1 из 100.\n";
} elseif ($numPost == 10) {
echo "Еще разок.\n";
}
?>
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CgokbGFzdERpZ2l0ID0gbXRfcmFuZCgxMDAwMDAsIDk5OTk5OSk7CgplY2hvICLQndC+0LzQtdGAINC/0L7RgdGC0LAgeyRsYXN0RGlnaXR9LlxuIjsKCiRudW1Qb3N0ID0gJGxhc3REaWdpdCAlIDEwOwoKaWYgKCRudW1Qb3N0ID09IDApIHsKCWVjaG8gItCV0YnQtSDRgNCw0LfQvtC6LlxuIjsKfSBlbHNlaWYgKCRudW1Qb3N0ID09IDEpIHsKCWVjaG8gItCd0LXRgi5cbiI7Cn0gZWxzZWlmICgkbnVtUG9zdCA9PSAyKSB7CgllY2hvICLQlNCwLlxuIjsKfSBlbHNlaWYgKCRudW1Qb3N0ID09IDMpIHsKCWVjaG8gItCt0YLQviDQvdC1INCy0LDQttC90L4uXG4iOwp9IGVsc2VpZiAoJG51bVBvc3QgPT0gNCkgewoJZWNobyAi0KHQv9C+0LosINCx0YDQvi5cbiI7Cn0gZWxzZWlmICgkbnVtUG9zdCA9PSA1KSB7CgllY2hvICLQotC+0LvRgdGC0L4uXG4iOwp9IGVsc2VpZiAoJG51bVBvc3QgPT0gNikgewoJZWNobyAi0JTQsCwg0YXQvtGC0Y8g0LfRgNGPLlxuIjsKfSBlbHNlaWYgKCRudW1Qb3N0ID09IDcpIHsKCWVjaG8gItCd0LjQutC+0LPQtNCwLlxuIjsKfSBlbHNlaWYgKCRudW1Qb3N0ID09IDgpIHsKCWVjaG8gIjEwMCUuXG4iOwp9IGVsc2VpZiAoJG51bVBvc3QgPT0gOSkgewoJZWNobyAiMSDQuNC3IDEwMC5cbiI7Cn0gZWxzZWlmICgkbnVtUG9zdCA9PSAxMCkgewoJZWNobyAi0JXRidC1INGA0LDQt9C+0LouXG4iOwp9Cj8+