<?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: Can I set the random seed for random uniform function? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Can-I-set-the-random-seed-for-random-uniform-function/m-p/216223#M43196</link>
    <description>&lt;P&gt;Take a look at 'RandomReset()':&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

nr = 10;
nc = 10;
mat = J(nr, nc, .);

for (c=1, c&amp;lt;=nc, c++,
	Random Reset( 1 );
	mat[0,c] = J(nr, 1, RandomUniform());
);
dt1 = AsTable(mat);
dt1 &amp;lt;&amp;lt; setName("Columns the same");

for (c=1, c&amp;lt;=nc, c++,
	Random Reset( 666 );
	mat[0,c] = J(nr, 1, RandomUniform());
);
dt2 = AsTable(mat);&lt;BR /&gt;dt2 &amp;lt;&amp;lt; setName("Columns the same");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2019 08:43:35 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2019-07-04T08:43:35Z</dc:date>
    <item>
      <title>Can I set the random seed for random uniform function?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-set-the-random-seed-for-random-uniform-function/m-p/216213#M43195</link>
      <description>&lt;P&gt;I try to generate a constant random number everytime I run the script. Is there anyway to do that?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 08:24:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-set-the-random-seed-for-random-uniform-function/m-p/216213#M43195</guid>
      <dc:creator>Shunee</dc:creator>
      <dc:date>2019-07-04T08:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can I set the random seed for random uniform function?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-set-the-random-seed-for-random-uniform-function/m-p/216223#M43196</link>
      <description>&lt;P&gt;Take a look at 'RandomReset()':&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

nr = 10;
nc = 10;
mat = J(nr, nc, .);

for (c=1, c&amp;lt;=nc, c++,
	Random Reset( 1 );
	mat[0,c] = J(nr, 1, RandomUniform());
);
dt1 = AsTable(mat);
dt1 &amp;lt;&amp;lt; setName("Columns the same");

for (c=1, c&amp;lt;=nc, c++,
	Random Reset( 666 );
	mat[0,c] = J(nr, 1, RandomUniform());
);
dt2 = AsTable(mat);&lt;BR /&gt;dt2 &amp;lt;&amp;lt; setName("Columns the same");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 08:43:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-set-the-random-seed-for-random-uniform-function/m-p/216223#M43196</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2019-07-04T08:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can I set the random seed for random uniform function?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-set-the-random-seed-for-random-uniform-function/m-p/216311#M43219</link>
      <description>&lt;P&gt;Thank you! Random Reset() work.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 06:56:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-set-the-random-seed-for-random-uniform-function/m-p/216311#M43219</guid>
      <dc:creator>Shunee</dc:creator>
      <dc:date>2019-07-05T06:56:15Z</dc:date>
    </item>
  </channel>
</rss>

