<?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: reproducing random sample using rannor(seed) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/reproducing-random-sample-using-rannor-seed/m-p/332307#M74779</link>
    <description>&lt;P&gt;Draycut&amp;nbsp;gave the correct answer for the RAND (or RANDGEN) function. (For a longer answer, see &lt;A href="http://blogs.sas.com/content/iml/2011/08/31/random-number-streams-in-sas-how-do-they-work.html" target="_self"&gt;"Random number streams in SAS."&lt;/A&gt;) However, you asked about the RANNOR function, which takes the seed as an argument.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The answer is still "yes." Up to numerical precision, you should get the same values for RANNOR as long as you use the same seed. &amp;nbsp;Some people use the seeds incorrectly, so be sure to read &lt;A href="http://blogs.sas.com/content/iml/2012/01/30/random-number-seeds-only-the-first-seed-matters.html" target="_self"&gt;"Random number seeds: Only the first seed matters" &lt;/A&gt;&amp;nbsp;to make sure you understand how seeds initialize streams.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2017 19:32:42 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-02-13T19:32:42Z</dc:date>
    <item>
      <title>reproducing random sample using rannor(seed)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reproducing-random-sample-using-rannor-seed/m-p/331758#M74599</link>
      <description>&lt;P&gt;Should I be able to reproduce a random sample of draws from the standard normal (rannor) generated by someone else as long as I use the same seed number? Would the sample differ depending on version of SAS, machine or any other factors? Thank you. jm&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 01:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reproducing-random-sample-using-rannor-seed/m-p/331758#M74599</guid>
      <dc:creator>doylejm</dc:creator>
      <dc:date>2017-02-11T01:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: reproducing random sample using rannor(seed)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reproducing-random-sample-using-rannor-seed/m-p/331790#M74616</link>
      <description>&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;call streaminit(123);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if you are simulating data in a datastep. Use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;call randseed(123);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if you are simulating data in IML. the two algorithms are the same for the datastep and IML and to my knowledge you will get the same results across most sas versions as well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 09:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reproducing-random-sample-using-rannor-seed/m-p/331790#M74616</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-02-11T09:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: reproducing random sample using rannor(seed)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reproducing-random-sample-using-rannor-seed/m-p/332231#M74756</link>
      <description>&lt;P&gt;You may have an issue of duplicating if the other use actually uses Rand('normal') or possibly Call Rannor&amp;nbsp;instead of Rannor.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 16:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reproducing-random-sample-using-rannor-seed/m-p/332231#M74756</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-13T16:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: reproducing random sample using rannor(seed)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reproducing-random-sample-using-rannor-seed/m-p/332307#M74779</link>
      <description>&lt;P&gt;Draycut&amp;nbsp;gave the correct answer for the RAND (or RANDGEN) function. (For a longer answer, see &lt;A href="http://blogs.sas.com/content/iml/2011/08/31/random-number-streams-in-sas-how-do-they-work.html" target="_self"&gt;"Random number streams in SAS."&lt;/A&gt;) However, you asked about the RANNOR function, which takes the seed as an argument.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The answer is still "yes." Up to numerical precision, you should get the same values for RANNOR as long as you use the same seed. &amp;nbsp;Some people use the seeds incorrectly, so be sure to read &lt;A href="http://blogs.sas.com/content/iml/2012/01/30/random-number-seeds-only-the-first-seed-matters.html" target="_self"&gt;"Random number seeds: Only the first seed matters" &lt;/A&gt;&amp;nbsp;to make sure you understand how seeds initialize streams.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 19:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reproducing-random-sample-using-rannor-seed/m-p/332307#M74779</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-02-13T19:32:42Z</dc:date>
    </item>
  </channel>
</rss>

