<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; CMD/BAT: Детермированный ГСЧ]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10584&amp;type=atom" />
	<updated>2015-04-16T08:16:19Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10584</id>
		<entry>
			<title type="html"><![CDATA[CMD/BAT: Детермированный ГСЧ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93425#p93425" />
			<content type="html"><![CDATA[<p>Код :<br /></p><div class="codebox"><pre><code>
@echo off
setlocal enabledelayedexpansion
set seed=%1
for /l %%i in (1,1,10) do (
    set /a &quot;seed=seed * 214013 + 2531011&quot;
    set /a &quot;number=(seed &gt;&gt; 16) &amp; 0x7FFF&quot;
    Echo !number!
)
endlocal
exit /b
</code></pre></div><p>Выдает 10 чисел.<br />Пример с зерном : 6<br />58<br />6673<br />30119<br />15745<br />5206<br />2589<br />27040<br />14722<br />11216<br />26492</p>]]></content>
			<author>
				<name><![CDATA[torus]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33003</uri>
			</author>
			<updated>2015-04-16T08:16:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93425#p93425</id>
		</entry>
</feed>
