<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: generation random numbers in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/generation-random-numbers/m-p/468995#M119874</link>
    <description>&lt;P&gt;The RAND function uses a different random number generator (the so called Mersenne-Twister) than the RANUNI function (and other functions of this&amp;nbsp;family, i.e. RANNOR, RANPOI etc.), hence the different results. Due to the good statistical properties of that Mersenne-Twister random number generator, the RAND function is preferable over the older random number functions such as RANUNI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details please see Rick Wicklin's blog article "&lt;A href="https://blogs.sas.com/content/iml/2013/07/10/stop-using-ranuni.html" target="_blank"&gt;Six reasons you should stop using the RANUNI function to generate random numbers&lt;/A&gt;".&lt;/P&gt;</description>
    <pubDate>Sun, 10 Jun 2018 10:57:11 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2018-06-10T10:57:11Z</dc:date>
    <item>
      <title>generation random numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/generation-random-numbers/m-p/468993#M119872</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data TEST;
	call streaminit(123);
do i=1 to 20;
	ranuni=ranuni(123);
	rand=RAND('UNIFORM');
	output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The question is : I expected to get the same values for ranuni and rand functions.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 10:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/generation-random-numbers/m-p/468993#M119872</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2018-06-10T10:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: generation random numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/generation-random-numbers/m-p/468995#M119874</link>
      <description>&lt;P&gt;The RAND function uses a different random number generator (the so called Mersenne-Twister) than the RANUNI function (and other functions of this&amp;nbsp;family, i.e. RANNOR, RANPOI etc.), hence the different results. Due to the good statistical properties of that Mersenne-Twister random number generator, the RAND function is preferable over the older random number functions such as RANUNI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details please see Rick Wicklin's blog article "&lt;A href="https://blogs.sas.com/content/iml/2013/07/10/stop-using-ranuni.html" target="_blank"&gt;Six reasons you should stop using the RANUNI function to generate random numbers&lt;/A&gt;".&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 10:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/generation-random-numbers/m-p/468995#M119874</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-06-10T10:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: generation random numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/generation-random-numbers/m-p/469222#M119982</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;wrote a blog about it before.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 13:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/generation-random-numbers/m-p/469222#M119982</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-06-11T13:13:33Z</dc:date>
    </item>
  </channel>
</rss>

