<?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 list of 0 and 1 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Random-list-of-0-and-1/m-p/505020#M135219</link>
    <description>&lt;P&gt;From here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001466748.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001466748.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do:&lt;/P&gt;
&lt;PRE&gt;data want;
  call streaminit(123);
  do i=1 to 1000;
    x=round(rand('uniform'));
    output;
  end;
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Oct 2018 09:53:33 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-10-17T09:53:33Z</dc:date>
    <item>
      <title>Random list of 0 and 1</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Random-list-of-0-and-1/m-p/505019#M135218</link>
      <description>&lt;P&gt;Hallo!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my Project I Need to create a random list of 1 and 0. Basically the classic head or tail program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know it should be pretty simple but I can´t find any solution in the old Posts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 09:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Random-list-of-0-and-1/m-p/505019#M135218</guid>
      <dc:creator>riccardo88</dc:creator>
      <dc:date>2018-10-17T09:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Random list of 0 and 1</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Random-list-of-0-and-1/m-p/505020#M135219</link>
      <description>&lt;P&gt;From here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001466748.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001466748.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do:&lt;/P&gt;
&lt;PRE&gt;data want;
  call streaminit(123);
  do i=1 to 1000;
    x=round(rand('uniform'));
    output;
  end;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Oct 2018 09:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Random-list-of-0-and-1/m-p/505020#M135219</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-17T09:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Random list of 0 and 1</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Random-list-of-0-and-1/m-p/505051#M135223</link>
      <description>&lt;P&gt;It is called Bernolli Trail/Distribution .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  call streaminit(123456789);
  do i=1 to 1000;
    x=rand('bern',0.5);
    output;
  end;
run;
proc freq data=want;
table x/missing;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Oct 2018 12:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Random-list-of-0-and-1/m-p/505051#M135223</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-17T12:36:03Z</dc:date>
    </item>
  </channel>
</rss>

