<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; JS: Скрипт вывода чисел]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10015</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10015&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «JS: Скрипт вывода чисел».]]></description>
		<lastBuildDate>Thu, 02 Oct 2014 06:12:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: JS: Скрипт вывода чисел]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86938#p86938</link>
			<description><![CDATA[<p><strong>sliv99</strong>, Вы не могли бы более четко формулировать свои мысли, так как в данном случае получается, что либо нужен сценарий для генерации некой не совсем понятной последовательности, либо - просто рандомизатор чисел в диапазоне от x до y. Если последнее, то код можно представить следующим образом:<br /></p><div class="codebox"><pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
      var onClick = function() {
        document.getElementById(&#039;random&#039;).value = (function(min, max) {
          return Math.floor(Math.random() * (max - min + 1)) + min;
        }(0, 100));
      }
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;input type=&quot;text&quot;
           id=&quot;random&quot;
           placeholder=&quot;Результат&quot; /&gt;
    &lt;input type=&quot;button&quot;
           value=&quot;Нажми меня!!!&quot;
           onclick=&quot;onClick()&quot; /&gt;
  &lt;/body&gt;
&lt;/html&gt;</code></pre></div><p>Диапазон случайных чисел был указан от нуля до ста, полагаю, для Ваших нужд этого будет достаточно.</p>]]></description>
			<author><![CDATA[null@example.com (greg zakharov)]]></author>
			<pubDate>Thu, 02 Oct 2014 06:12:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86938#p86938</guid>
		</item>
		<item>
			<title><![CDATA[JS: Скрипт вывода чисел]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86931#p86931</link>
			<description><![CDATA[<p>Здравствуйте! Подскажите как написать скрипт вывода чисел ... Например при нажатии одного раза кнопки выводится число 32, при втором нажатии - 45, при третьем - 12, при четвертом - 83??? спасибо</p>]]></description>
			<author><![CDATA[null@example.com (sliv99)]]></author>
			<pubDate>Wed, 01 Oct 2014 17:10:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86931#p86931</guid>
		</item>
	</channel>
</rss>
