<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Generate a random variable VALUE with normal distribution</title>
    <link>http://www.mapleprimes.com/questions/35694-Generate-A-Random-Variable-VALUE-With</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 20:17:24 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 20:17:24 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Generate a random variable VALUE with normal distribution</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Generate a random variable VALUE with normal distribution</title>
      <link>http://www.mapleprimes.com/questions/35694-Generate-A-Random-Variable-VALUE-With</link>
    </image>
    <item>
      <title>&gt;</title>
      <link>http://www.mapleprimes.com/questions/35694-Generate-A-Random-Variable-VALUE-With?ref=Feed:MaplePrimes:Generate a random variable VALUE with normal distribution:Comments#answer44741</link>
      <itunes:summary>&lt;p&gt;&lt;br /&gt;
restart: &lt;br /&gt;
with(Statistics):&lt;br /&gt;
Sample(RandomVariable(Normal(0, 1)), 10);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; [-0.479341933636560024, 0.784173699733298979, -0.500486574831822351, &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.491050898933502511, 0.237828352925436416, -0.148240640484583186, &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0707527186858661478, 1.06583429443452870, -1.44945211081540992, &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.571779637328814316]&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;br /&gt;
restart: &lt;br /&gt;
with(Statistics):&lt;br /&gt;
Sample(RandomVariable(Normal(0, 1)), 10);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; [-0.479341933636560024, 0.784173699733298979, -0.500486574831822351, &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.491050898933502511, 0.237828352925436416, -0.148240640484583186, &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0707527186858661478, 1.06583429443452870, -1.44945211081540992, &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.571779637328814316]&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;</description>
      <guid>44741</guid>
      <pubDate>Thu, 18 Feb 2010 19:00:59 Z</pubDate>
      <itunes:author>alex_01</itunes:author>
      <author>alex_01</author>
    </item>
    <item>
      <title>Thank-you but I looked at</title>
      <link>http://www.mapleprimes.com/questions/35694-Generate-A-Random-Variable-VALUE-With?ref=Feed:MaplePrimes:Generate a random variable VALUE with normal distribution:Comments#answer44742</link>
      <itunes:summary>&lt;p&gt;Thank-you but I looked at that and I need to put the values into a matrix so it didn't work.&lt;br /&gt;
I have decided to use with(RandomTools)&lt;/p&gt;
&lt;p&gt;Generate(distribution(Normal(0,1)) it seems to work&lt;br /&gt;
I also have Generate(distribution(Normal(0,.5))+I*Generate(distribution(Normal(0,.5))&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thank-you but I looked at that and I need to put the values into a matrix so it didn't work.&lt;br /&gt;
I have decided to use with(RandomTools)&lt;/p&gt;
&lt;p&gt;Generate(distribution(Normal(0,1)) it seems to work&lt;br /&gt;
I also have Generate(distribution(Normal(0,.5))+I*Generate(distribution(Normal(0,.5))&lt;/p&gt;</description>
      <guid>44742</guid>
      <pubDate>Thu, 18 Feb 2010 19:15:21 Z</pubDate>
      <itunes:author>plummie</itunes:author>
      <author>plummie</author>
    </item>
    <item>
      <title>Matrix</title>
      <link>http://www.mapleprimes.com/questions/35694-Generate-A-Random-Variable-VALUE-With?ref=Feed:MaplePrimes:Generate a random variable VALUE with normal distribution:Comments#answer44743</link>
      <itunes:summary>&lt;p&gt;If you are wanting to put the values into a Matrix try doing this in one step with something like the following:&lt;/p&gt;
&lt;p&gt;&amp;gt; Matrix(3, 3, RandomTools:-Generate(distribution(Normal(0, 1)), makeproc = true));&lt;/p&gt;
&lt;p&gt;Scott&lt;br /&gt;
Application Developer&lt;br /&gt;
Maplesoft&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="file:///C:/DOCUME~1/sbrehm/LOCALS~1/Temp/moz-screenshot-4.png" /&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;If you are wanting to put the values into a Matrix try doing this in one step with something like the following:&lt;/p&gt;
&lt;p&gt;&amp;gt; Matrix(3, 3, RandomTools:-Generate(distribution(Normal(0, 1)), makeproc = true));&lt;/p&gt;
&lt;p&gt;Scott&lt;br /&gt;
Application Developer&lt;br /&gt;
Maplesoft&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="file:///C:/DOCUME~1/sbrehm/LOCALS~1/Temp/moz-screenshot-4.png" /&gt;&lt;/p&gt;</description>
      <guid>44743</guid>
      <pubDate>Thu, 18 Feb 2010 19:44:34 Z</pubDate>
      <itunes:author>Scott03</itunes:author>
      <author>Scott03</author>
    </item>
    <item>
      <title>Matrix</title>
      <link>http://www.mapleprimes.com/questions/35694-Generate-A-Random-Variable-VALUE-With?ref=Feed:MaplePrimes:Generate a random variable VALUE with normal distribution:Comments#comment44744</link>
      <itunes:summary>&lt;pre&gt;
&amp;gt; with(Statistics):
&amp;nbsp; X:= Sample(Normal(0, 0.5), 4) + I*Sample(Normal(0, 0.5), 4);
&amp;nbsp; ArrayTools:-Reshape(X,2,2);
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;pre&gt;
&amp;gt; with(Statistics):
&amp;nbsp; X:= Sample(Normal(0, 0.5), 4) + I*Sample(Normal(0, 0.5), 4);
&amp;nbsp; ArrayTools:-Reshape(X,2,2);
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>44744</guid>
      <pubDate>Fri, 19 Feb 2010 03:15:30 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>I have looked at doing it in</title>
      <link>http://www.mapleprimes.com/questions/35694-Generate-A-Random-Variable-VALUE-With?ref=Feed:MaplePrimes:Generate a random variable VALUE with normal distribution:Comments#comment44745</link>
      <itunes:summary>&lt;p&gt;I have looked at doing it in one step but my off diagonal values have a different normal distribution to the diagonals and the matrix has to be hermitian. One way I did find to do it didn't allow me to generate eigenvalues of a large n x n case so I'm now attempting to build the matrix from scratch by generating values of each distribution and inputting them in the matrix using a for loop.&lt;/p&gt;
&lt;p&gt;Obviously if there is a simpler way to do it, then I would appreciate your help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I have looked at doing it in one step but my off diagonal values have a different normal distribution to the diagonals and the matrix has to be hermitian. One way I did find to do it didn't allow me to generate eigenvalues of a large n x n case so I'm now attempting to build the matrix from scratch by generating values of each distribution and inputting them in the matrix using a for loop.&lt;/p&gt;
&lt;p&gt;Obviously if there is a simpler way to do it, then I would appreciate your help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>44745</guid>
      <pubDate>Sat, 20 Feb 2010 14:23:05 Z</pubDate>
      <itunes:author>plummie</itunes:author>
      <author>plummie</author>
    </item>
    <item>
      <title>Try this</title>
      <link>http://www.mapleprimes.com/questions/35694-Generate-A-Random-Variable-VALUE-With?ref=Feed:MaplePrimes:Generate a random variable VALUE with normal distribution:Comments#comment44746</link>
      <itunes:summary>&lt;p&gt;How about using this call?&lt;/p&gt;
&lt;p&gt;Matrix(3, 3, RandomTools:-Generate(distribution(Normal(0, 1)), makeproc = true), shape = hermitian);&lt;/p&gt;
&lt;p&gt;This uses the shape option to make the matrix the correct shape that you are looking for.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="file:///C:/DOCUME~1/sbrehm/LOCALS~1/Temp/moz-screenshot-5.png" /&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;How about using this call?&lt;/p&gt;
&lt;p&gt;Matrix(3, 3, RandomTools:-Generate(distribution(Normal(0, 1)), makeproc = true), shape = hermitian);&lt;/p&gt;
&lt;p&gt;This uses the shape option to make the matrix the correct shape that you are looking for.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="file:///C:/DOCUME~1/sbrehm/LOCALS~1/Temp/moz-screenshot-5.png" /&gt;&lt;/p&gt;</description>
      <guid>44746</guid>
      <pubDate>Mon, 22 Feb 2010 20:11:14 Z</pubDate>
      <itunes:author>Scott03</itunes:author>
      <author>Scott03</author>
    </item>
  </channel>
</rss>