<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Random без повтора последних трех чисел]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12273&amp;type=atom" />
	<updated>2017-01-02T10:20:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12273</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Random без повтора последних трех чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=110447#p110447" />
			<content type="html"><![CDATA[<p>Ещё раз проверил - с отрицательными работает. Главное чтоб min было меньше max.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-01-02T10:20:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=110447#p110447</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Random без повтора последних трех чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=110446#p110446" />
			<content type="html"><![CDATA[<p>А с отрицательными не работает разве?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-01-02T10:01:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=110446#p110446</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Random без повтора последних трех чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=110445#p110445" />
			<content type="html"><![CDATA[<p>Работает с положительными целыми числами.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-01-02T08:07:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=110445#p110445</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Random без повтора последних трех чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=110444#p110444" />
			<content type="html"><![CDATA[<p>Проблема решена, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-01-02T06:28:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=110444#p110444</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Random без повтора последних трех чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=110442#p110442" />
			<content type="html"><![CDATA[<p>Как-то так:<br /></p><div class="codebox"><pre><code>min := 1, max := 10
randArray := CreateRandArray(min, max)

F11:: MsgBox % MyRandom(randArray, 3)

MyRandom(randArray, exclude)  {
   static i := 0
   Random, rand, 1 + (i &lt; exclude ? i++ : i), randArray.MaxIndex()
   n := randArray.RemoveAt(rand), randArray.InsertAt(1, n)
   Return n
}
      
CreateRandArray(min, max)  {
   array := []
   while min &lt; max + 1
      array.Push(min++)
   Return array
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-01-01T20:24:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=110442#p110442</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Random без повтора последних трех чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=110438#p110438" />
			<content type="html"><![CDATA[<p>Здравствуйте, есть следующий код:<br /></p><div class="codebox"><pre><code> Random, var, 1, 10</code></pre></div><p>Как мне сделать так, чтобы при срабатывании, функция &quot;вспоминала&quot; последние три числа, что она генерировала ранее и не отправляла их соответственно. Ну если это сложно слишком, то хотя бы последнее не отправляла. Заранее спасибо.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-01-01T18:05:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=110438#p110438</id>
		</entry>
</feed>
