<?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 Combinations in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Combinations/m-p/230024#M45649</link>
    <description>&lt;P&gt;Hello, I just want to ask how do i generate&amp;nbsp; 6 random numbers ranging from 1 to 100 from which the user indicates the number of combinations to be generated?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2019 13:54:01 GMT</pubDate>
    <dc:creator>pawndreal_</dc:creator>
    <dc:date>2019-10-22T13:54:01Z</dc:date>
    <item>
      <title>Combinations</title>
      <link>https://community.jmp.com/t5/Discussions/Combinations/m-p/230024#M45649</link>
      <description>&lt;P&gt;Hello, I just want to ask how do i generate&amp;nbsp; 6 random numbers ranging from 1 to 100 from which the user indicates the number of combinations to be generated?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:54:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combinations/m-p/230024#M45649</guid>
      <dc:creator>pawndreal_</dc:creator>
      <dc:date>2019-10-22T13:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Combinations</title>
      <link>https://community.jmp.com/t5/Discussions/Combinations/m-p/230028#M45651</link>
      <description>&lt;P&gt;JMP has many pseudo-random number generators. Use this one:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Random Integer( 1, 100 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can construct a vector with the J() function. Here is a call to produce a column vector of six random variables:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;J( 6, 1, Random Integer( 1, 6 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am not clear what you need when you say "from which a user indicates the number of combinations to be generated."&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 14:26:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combinations/m-p/230028#M45651</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-10-22T14:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Combinations</title>
      <link>https://community.jmp.com/t5/Discussions/Combinations/m-p/230212#M45660</link>
      <description>Thanks for the reply! What i meant is that when a user indicated number of&lt;BR /&gt;combinations, say if i input 3 as my combinations, it returns 3 column&lt;BR /&gt;vectors of the random numbers generated.&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Oct 2019 20:37:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combinations/m-p/230212#M45660</guid>
      <dc:creator>pawndreal_</dc:creator>
      <dc:date>2019-10-22T20:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Combinations</title>
      <link>https://community.jmp.com/t5/Discussions/Combinations/m-p/230300#M45672</link>
      <description>&lt;P&gt;I see. That need is easily handled by the second argument to the J() function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;J( 6, 3, Random Integer( 1, 6 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can use variables instead of constants, too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;r = 6;
c = 3;
J( r, c, Random Integer( 1, 6 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 12:49:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combinations/m-p/230300#M45672</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-10-23T12:49:28Z</dc:date>
    </item>
  </channel>
</rss>

