<?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: Random Number Generator in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Random-Number-Generator/m-p/181882#M9451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and no, never used teh streamint function.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 20:34:46 GMT</pubDate>
    <dc:creator>ebmancha</dc:creator>
    <dc:date>2014-11-21T20:34:46Z</dc:date>
    <item>
      <title>Random Number Generator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-Number-Generator/m-p/181879#M9448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The change in random number generators between 9.2 and 9.3 is giving me some problems.&amp;nbsp; Specifically, I need to replicate the random number generation process in 9.2 (using ranuni), while using the 9.3 software.&amp;nbsp; I found a link a while back that claimed to have code to do this, but it became inactive before I could test it.&amp;nbsp; Does anyone have experience with this?&amp;nbsp; Specifically, I need to be able to validate that samples generated using 9.2 were done correctly, while having access to only the 9.3 software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 20:07:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-Number-Generator/m-p/181879#M9448</guid>
      <dc:creator>ebmancha</dc:creator>
      <dc:date>2014-11-21T20:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Random Number Generator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-Number-Generator/m-p/181880#M9449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your SAS 9.2 code look like? Did&amp;nbsp; you use the streamint function in 9.2 as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 20:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-Number-Generator/m-p/181880#M9449</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-11-21T20:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Random Number Generator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-Number-Generator/m-p/181881#M9450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just your standard ranuni:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveyselect data = frame&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out = pj.sample&amp;nbsp; samplesize = 80&amp;nbsp; seed = 20047&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or, ranuni within a datastep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Emma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 20:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-Number-Generator/m-p/181881#M9450</guid>
      <dc:creator>ebmancha</dc:creator>
      <dc:date>2014-11-21T20:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Random Number Generator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-Number-Generator/m-p/181882#M9451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and no, never used teh streamint function.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 20:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-Number-Generator/m-p/181882#M9451</guid>
      <dc:creator>ebmancha</dc:creator>
      <dc:date>2014-11-21T20:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Random Number Generator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-Number-Generator/m-p/181883#M9452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Back in the 9.2 days PROC SURVEYSELECT used the RANUNI algorithm, as documented here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_surveyselect_sect015.htm" title="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_surveyselect_sect015.htm"&gt;SAS/STAT(R) 9.2 User's Guide, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example, the PROC uses the default sampling method, which is SRS (simple random samples without replacement). The doc says that "PROC SURVEYSELECT uses Floyd’s ordered hash table algorithm for simple random sampling....&amp;nbsp; See Bentley and&lt;/P&gt;&lt;P&gt;Floyd (1987) and Bentley and Knuth (1986) for details."&amp;nbsp; So I'd look up the algorithm and use the RANUNI function in the SAS 9.3 DATA step to try to recreate the 9.2 behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 18:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-Number-Generator/m-p/181883#M9452</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-11-24T18:46:31Z</dc:date>
    </item>
  </channel>
</rss>

