<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Рандомные числа]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17266&amp;type=atom" />
	<updated>2022-07-25T09:35:11Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17266</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Рандомные числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=154045#p154045" />
			<content type="html"><![CDATA[<p><strong>GoLuB_NaTaShA</strong>, добро пожаловать на форум! Ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">точки</a> в конце предложений.</p><p><strong>andypetr</strong>, просьба тоже <a href="https://forum.script-coding.com/misc.php?action=rules#no-answer">ознакомиться</a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-07-25T09:35:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=154045#p154045</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Рандомные числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=154044#p154044" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Randomize   &#039; Инициализировать генератор случайных чисел (с помощью системного таймера).
x = Int((9 * Rnd) + 1)   &#039; Генерировать целое случайное число от 1 до 9 (функция Rnd).
WScript.Echo x
</code></pre></div><p>Общая формула для генерации случайного целого числа от <strong>lowerbound</strong> до <strong>upperbound</strong>:<br /></p><div class="codebox"><pre><code>Int((upperbound - lowerbound + 1) * Rnd + lowerbound)
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[andypetr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40320</uri>
			</author>
			<updated>2022-07-25T08:16:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=154044#p154044</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Рандомные числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=154042#p154042" />
			<content type="html"><![CDATA[<p>Как сделать генератор случайных чисел от 1 до 9 на VBScript</p>]]></content>
			<author>
				<name><![CDATA[GoLuB_NaTaShA]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42696</uri>
			</author>
			<updated>2022-07-24T15:04:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=154042#p154042</id>
		</entry>
</feed>
