<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: присвоить переменной случайную строку из текстового файла]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10356&amp;type=atom" />
	<updated>2015-01-20T09:38:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10356</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: присвоить переменной случайную строку из текстового файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90788#p90788" />
			<content type="html"><![CDATA[<p>Возможно. Прочитать файл в переменную, разбить её на массив строк командой StringSplit. В пределах числа строк выбрать случайное число командой Random. Присвоить строку под этим номером переменной.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-01-20T09:38:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90788#p90788</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: присвоить переменной случайную строку из текстового файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90787#p90787" />
			<content type="html"><![CDATA[<p>Задача в том, чтобы присвоить переменной случайную текстовую строку из внешнего текстового файла такого вида:<br /></p><div class="codebox"><pre><code>
строка 1
строка 2
строка 3
</code></pre></div><p>Строк в файле не постоянное количество. Возможно ли это реализовать? И как?</p>]]></content>
			<author>
				<name><![CDATA[to4er]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32506</uri>
			</author>
			<updated>2015-01-20T09:18:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90787#p90787</id>
		</entry>
</feed>
