<?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: How to use Rand Function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Rand-Function/m-p/577439#M163623</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; Thank you, it worked.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 16:56:00 GMT</pubDate>
    <dc:creator>CathyVI</dc:creator>
    <dc:date>2019-07-29T16:56:00Z</dc:date>
    <item>
      <title>How to use Rand Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Rand-Function/m-p/577426#M163620</link>
      <description>&lt;P&gt;In the SAS learning course Programming 2, the rand function was used with “Integer” for random values to the data but when I tried it using my SAS 9.4 TS level 1M3 on Microsoft windows 10 enterprise(x64), I couldn’t get the same result. I also looked online to see compatible distribution for the Rand function but non specify the “integer”. This is my data step;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; test.class1;&lt;/P&gt;&lt;P&gt;NameID=Rand("Integer", &lt;STRONG&gt;100&lt;/STRONG&gt;,&lt;STRONG&gt;999&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;set test.Class;&lt;/P&gt;&lt;P&gt;drop name sex;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried the (RandBetween), but didn’t work. Any help ?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 16:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Rand-Function/m-p/577426#M163620</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2019-07-29T16:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Rand Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Rand-Function/m-p/577428#M163621</link>
      <description>Rand with the INTEGER option was introduced in SAS 9.4 - which is about 7 years old now. It's not available in SAS 9.3. Instead you can roll your own using Uniform distribution or using a macro written by Rick Wicklin here:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2015/10/05/random-integers-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2015/10/05/random-integers-sas.html&lt;/A&gt;</description>
      <pubDate>Mon, 29 Jul 2019 16:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Rand-Function/m-p/577428#M163621</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-29T16:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Rand Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Rand-Function/m-p/577439#M163623</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; Thank you, it worked.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 16:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Rand-Function/m-p/577439#M163623</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2019-07-29T16:56:00Z</dc:date>
    </item>
  </channel>
</rss>

