Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 3.71 KB | None | 0 0
  1. var
  2. i,randar,kek,ch,beb,bik,tire,slog:integer;
  3. gl,sog,ima,predl,gl1,sog1,sogi:string;
  4. a,b,c:string;
  5.  
  6. begin
  7. slog:= 0;
  8. beb:= 0;
  9. ima:= '';
  10. gl:='аоуыиэе';
  11. gl1:='яюиеё';
  12. sog:='цкнгшзхфвпрлдчсмтб';
  13. sog1:='цкншзхфвпрдчсмтб';
  14. sogi:='нгзфвпрлдсмтб';
  15. slog:=0;
  16. i:=0;
  17.  
  18.  
  19. randar:=random(5)+3;
  20. repeat
  21. kek:=random(3)+2;
  22. while slog<kek do begin;
  23.  
  24. ch:=random(5)+1;
  25.  
  26. //беб (при ь);
  27. if beb=1 then begin;
  28. bik:=random(5)+1;
  29.  
  30. if bik=1 then begin;
  31. a:=Copy(sog1, random(length(sog1)) + 1, 1);
  32. b:=Copy(gl, random(length(gl1)) + 1, 1);
  33. c:=Copy(sog, random(length(sog)) + 1, 1);
  34. ima:=Concat(ima,a,b,c);
  35. slog:=slog+1;
  36. beb:=2;
  37. end;
  38.  
  39. if bik=2 then begin;
  40. a:=Copy(gl1, random(length(gl1)) + 1, 1);
  41. b:=Copy(sog, random(length(sog)) + 1, 1);
  42. ima:=Concat(ima,a,b);
  43. slog:=slog+1;
  44. beb:=2;
  45. end;
  46.  
  47. if bik=3 then begin;
  48. a:=Copy(sog1, random(length(sog1)) + 1, 1);
  49. b:=Copy(gl, random(length(gl)) + 1, 1);
  50. ima:=Concat(ima,a,b);
  51. slog:=slog+1;
  52. beb:=2;
  53. end;
  54.  
  55. if bik=4 then begin;
  56. a:=Copy(gl1, random(length(gl1)) + 1, 1);
  57. b:=Copy(sogi, random(length(sogi)) + 1, 1);
  58. ima:=Concat(ima,a,b,'ь');
  59. slog:=slog+1;
  60. beb:=3;
  61. end;
  62. //
  63. //bik тире
  64. if bik=5 then begin;
  65. tire:=random(4)+1;
  66.  
  67. if (tire=1) then begin;
  68. a:=Copy(sog, random(length(sog)) + 1, 1);
  69. b:=Copy(gl, random(length(gl)) + 1, 1);
  70. c:=Copy(sog, random(length(sog)) + 1, 1);
  71. ima:=Concat(ima,'-',a,b,c);
  72. slog:=slog+1;
  73. beb:=2;
  74. end;
  75.  
  76. if (tire=2) then begin;
  77. a:=Copy(gl, random(length(gl)) + 1, 1);
  78. b:=Copy(sog, random(length(sog)) + 1, 1);
  79. ima:=Concat(ima,'-',a,b);
  80. slog:=slog+1;
  81. beb:=2;
  82. end;
  83.  
  84. if (tire=3) then begin;
  85. a:=Copy(sog, random(length(sog)) + 1, 1);
  86. b:=Copy(gl, random(length(gl)) + 1, 1);
  87. ima:=Concat(ima,'-',a,b);
  88. slog:=slog+1;
  89. beb:=2;
  90. end;
  91.  
  92. if (tire=4) then begin;
  93. a:=Copy(gl, random(length(gl)) + 1, 1);
  94. b:=Copy(sogi, random(length(sogi)) + 1, 1);
  95. ima:=Concat(ima,'-',a,b,'ь');
  96. slog:=slog+1;
  97. beb:=3;
  98. end;
  99. end;
  100. //конец bik тире
  101. end;
  102. //кон беб
  103.  
  104. if beb = 0 then begin
  105. if ch=1 then begin;
  106. a:=Copy(sog, random(length(sog)) + 1, 1);
  107. b:=Copy(gl, random(length(gl)) + 1, 1);
  108. c:=Copy(sog, random(length(sog)) + 1, 1);
  109. ima:=Concat(ima,a,b,c);
  110. slog:=slog+1;
  111. end;
  112. if ch=2 then begin;
  113. a:=Copy(gl, random(length(gl)) + 1, 1);
  114. b:=Copy(sog, random(length(sog)) + 1, 1);
  115. ima:=Concat(ima,a,b);
  116. slog:=slog+1;
  117. end;
  118. if ch=3 then begin;
  119. a:=Copy(sog, random(length(sog)) + 1, 1);
  120. b:=Copy(gl, random(length(gl)) + 1, 1);
  121. ima:=Concat(ima,a,b);
  122. slog:=slog+1;
  123. end;
  124. if ch=4 then begin;
  125. a:=Copy(gl, random(length(gl)) + 1, 1);
  126. b:=Copy(sogi, random(length(sogi)) + 1, 1);
  127. ima:=Concat(ima,a,b,'ь');
  128. slog:=slog+1;
  129. beb:=1;
  130. end;
  131.  
  132. //тире
  133. if ch=5 then begin;
  134.  
  135. if slog>=1 then begin;
  136. tire:=random(4)+1;
  137. if (tire=1) then begin;
  138. a:=Copy(sog, random(length(sog)) + 1, 1);
  139. b:=Copy(gl, random(length(gl)) + 1, 1);
  140. c:=Copy(sog, random(length(sog)) + 1, 1);
  141. ima:=Concat(ima,'-',a,b,c);
  142. slog:=slog+1;
  143.  
  144. end;
  145. if tire=2 then begin;
  146. a:=Copy(gl, random(length(gl)) + 1, 1);
  147. b:=Copy(sog, random(length(sog)) + 1, 1);
  148. ima:=Concat(ima,'-',a,b);
  149. slog:=slog+1;
  150. end;
  151. if tire=3 then begin;
  152. a:=Copy(sog, random(length(sog)) + 1, 1);
  153. b:=Copy(gl, random(length(gl)) + 1, 1);
  154. ima:=Concat(ima,'-',a,b);
  155. slog:=slog+1;
  156. end;
  157. if tire=4 then begin;
  158. a:=Copy(gl, random(length(gl)) + 1, 1);
  159. b:=Copy(sogi, random(length(sogi)) + 1, 1);
  160. c:='ь';
  161. ima:=Concat(ima,'-',a,b,c);
  162. slog:=slog+1;
  163. beb:=1;
  164. end;
  165. end;
  166.  
  167. end;
  168. //тире
  169. end;
  170.  
  171. if beb = 2 then beb:=0;
  172. if beb = 3 then beb:=1;
  173.  
  174. end;
  175. //кон основы
  176.  
  177. predl:=Concat(predl,ima,' ');
  178.  
  179. slog:=0;
  180. beb:=0;
  181. ima:='';
  182. i:=i+1;
  183. until i = randar;
  184. write(uppercase(copy(predl, 1, 1)), copy(predl, 2, (length(predl)-2)),'.');
  185. predl:='';
  186.  
  187.  
  188. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement