<?php
1 => 'あ',
2 => 'い',
3 => 'う',
4 => 'え',
5 => 'お',
6 => 'か',
7 => 'き',
8 => 'く',
9 => 'け',
10 => 'こ',
11 => 'さ',
12 => 'し',
13 => 'す',
14 => 'せ',
15 => 'そ',
16 => 'た',
17 => 'ち',
18 => 'つ',
19 => 'て',
20 => 'と',
21 => 'な',
22 => 'に',
23 => 'ぬ',
24 => 'ね',
25 => 'の',
26 => 'は',
27 => 'ひ',
28 => 'ふ',
29 => 'へ',
30 => 'ほ',
31 => 'ま',
32 => 'み',
33 => 'む',
34 => 'め',
35 => 'も',
36 => 'ら',
37 => 'り',
38 => 'る',
39 => 'れ',
40 => 'ろ',
41 => 'や',
42 => 'ゆ',
43 => 'よ',
44 => 'わ',
46 => 'が',
47 => 'ぎ',
48 => 'ぐ',
49 => 'げ',
50 => 'ご',
51 => 'だ',
52 => 'で',
53 => 'ど',
54 => 'ば',
55 => 'び',
56 => 'ぶ',
57 => 'べ',
58 => 'ぼ',
59 => 'ぱ',
60 => 'ぴ',
61 => 'ぷ',
61 => 'ぺ',
63 => 'ぽ',
64 => 'ざ',
65 => 'じ',
66 => 'ず',
67 => 'ぜ',
68 => 'ぞ',
69 => 'きゃ',
70 => 'きゅ',
71 => 'きょ',
72 => 'しゃ',
73 => 'しゅ',
74 => 'しょ',
75 => 'ちゃ',
76 => 'ちゅ',
77 => 'ちょ',
78 => 'にゃ',
79 => 'にゅ',
80 => 'にょ',
81 => 'ひゃ',
82 => 'ひゅ',
83 => 'ひょ',
84 => 'みゃ',
85 => 'みゅ',
86 => 'みょ',
87 => 'りゃ',
88 => 'りゅ',
89 => 'りょ',
90 => 'ぎゃ',
91 => 'ぎゅ',
92 => 'ぎょ',
93 => 'じゃ',
94 => 'じゅ',
95 => 'じょ',
96 => 'びゃ',
97 => 'びゅ',
98 => 'びょ',
99 => 'ぴゃ',
100 => 'ぴゅ',
101 => 'ぴょ',
102 => 'っ',
103 => 'ゝ',
104 => 'ゞ',
105 => 'ん'
);
$name = '';
$alphabetLength = count($letters); $numberOfSpecialSymbols = 4;
$doubler = 102;
$reduplicator = 103;
$voicedReduplicator = 104;
$N = 105;
for ($i = 1; $i <= $nameLength; $i++) {
if ($i == 1) {
$random = mt_rand(1, $alphabetLength - $numberOfSpecialSymbols); } else {
if ($random != $N) {
$random = mt_rand(1, $alphabetLength); } else {
$random = mt_rand(1, $alphabetLength - 1); }
}
if (($random == $reduplicator)&&($random >= 46)&&($random <= 101)) {
$random = $voicedReduplicator;
}
if (($random == $voicedReduplicator)&&($random < 46)) {
$random = $voicedReduplicator;
}
echo "Выпало число {$random}, кана {$letters[$random]} \n";
$name = $name . $letters[$random];
}
echo "-------\n";
echo "Советую имя {$name} для твоей кошки - не прогадаешь!\n";
?>
PD9waHAKCiRsZXR0ZXJzID0gYXJyYXkoCgkxCT0+CSfjgYInLAoJMgk9Pgkn44GEJywKCTMJPT4JJ+OBhicsCgk0CT0+CSfjgYgnLAoJNQk9Pgkn44GKJywKCTYJPT4JJ+OBiycsCgk3CT0+CSfjgY0nLAoJOAk9Pgkn44GPJywKCTkJPT4JJ+OBkScsCgkxMAk9Pgkn44GTJywKCTExCT0+CSfjgZUnLAoJMTIJPT4JJ+OBlycsCgkxMwk9Pgkn44GZJywKCTE0CT0+CSfjgZsnLAoJMTUJPT4JJ+OBnScsCgkxNgk9Pgkn44GfJywKCTE3CT0+CSfjgaEnLAoJMTgJPT4JJ+OBpCcsCgkxOQk9Pgkn44GmJywKCTIwCT0+CSfjgagnLAoJMjEJPT4JJ+OBqicsCgkyMgk9Pgkn44GrJywKCTIzCT0+CSfjgawnLAoJMjQJPT4JJ+OBrScsCgkyNQk9Pgkn44GuJywKCTI2CT0+CSfjga8nLAoJMjcJPT4JJ+OBsicsCgkyOAk9Pgkn44G1JywKCTI5CT0+CSfjgbgnLAoJMzAJPT4JJ+OBuycsCgkzMQk9Pgkn44G+JywKCTMyCT0+CSfjgb8nLAoJMzMJPT4JJ+OCgCcsCgkzNAk9Pgkn44KBJ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