<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/147115</link>
    <title>MATLAB Central Newsreader - Pseudo random generator</title>
    <description>Feed for thread: Pseudo random generator</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 01 May 2007 09:19:21 -0400</pubDate>
      <title>Pseudo random generator</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/147115#370035</link>
      <author>Alissa gotenberg</author>
      <description>hi all ,&lt;br&gt;
i wanted a pseudo random code generator for my project and a friend&lt;br&gt;
told me that i can find some help here ,&lt;br&gt;
&lt;br&gt;
so plz if anyone know a source code for a pseudo random generator (in&lt;br&gt;
matlab) , tell me about it .&lt;br&gt;
&lt;br&gt;
best wishes ,&lt;br&gt;
Alissa gotenberg .</description>
    </item>
    <item>
      <pubDate>Tue, 01 May 2007 13:27:03 -0400</pubDate>
      <title>Re: Pseudo random generator</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/147115#370037</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;ef557ed.-1@webcrossing.raydaftYaTP&amp;gt;,&lt;br&gt;
Alissa gotenberg &amp;lt;fete7a_85@hotmail.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;i wanted a pseudo random code generator for my project and a friend&lt;br&gt;
&amp;gt;told me that i can find some help here ,&lt;br&gt;
&lt;br&gt;
&amp;gt;so plz if anyone know a source code for a pseudo random generator (in&lt;br&gt;
&amp;gt;matlab) , tell me about it .&lt;br&gt;
&lt;br&gt;
The built in functions rand() and randn() are pseudo random number&lt;br&gt;
generators. What is the difference between their functionality&lt;br&gt;
and the functionality you need?&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;Is there any thing whereof it may be said, See, this is new? It hath&lt;br&gt;
&amp;nbsp;&amp;nbsp;been already of old time, which was before us.       -- Ecclesiastes</description>
    </item>
    <item>
      <pubDate>Tue, 01 May 2007 10:45:45 -0400</pubDate>
      <title>Re: Pseudo random generator</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/147115#370052</link>
      <author>Alissa gotenberg</author>
      <description>HI Walter ,&lt;br&gt;
&lt;br&gt;
THNX FOR YOUR REPLY , I KNEW BEFORE BOUT THE rand() &amp; randn() , but&lt;br&gt;
the project specification said it must be pseudo random generated&lt;br&gt;
code ,&lt;br&gt;
so i wanted to know if there is a difference between the noramlly&lt;br&gt;
distributed random or uniform distributed randoms &amp; the pseudo random&lt;br&gt;
.&lt;br&gt;
&lt;br&gt;
cause i guess it is a different random generation algorithm ,&lt;br&gt;
&lt;br&gt;
thnx again and waiting for more infos,&lt;br&gt;
&lt;br&gt;
Alissa gotenberg.</description>
    </item>
    <item>
      <pubDate>Tue, 01 May 2007 17:52:23 -0400</pubDate>
      <title>Re: Pseudo random generator</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/147115#370093</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;ef557ed.1@webcrossing.raydaftYaTP&amp;gt;,&lt;br&gt;
Alissa gotenberg &amp;lt;fete7a_85@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;THNX FOR YOUR REPLY , I KNEW BEFORE BOUT THE rand() &amp; randn() , but&lt;br&gt;
&amp;gt;the project specification said it must be pseudo random generated&lt;br&gt;
&amp;gt;code ,&lt;br&gt;
&amp;gt;so i wanted to know if there is a difference between the noramlly&lt;br&gt;
&amp;gt;distributed random or uniform distributed randoms &amp; the pseudo random&lt;br&gt;
&amp;gt;.&lt;br&gt;
&lt;br&gt;
Both rand() and randn() return pseudo-random sequences.&lt;br&gt;
&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;cause i guess it is a different random generation algorithm ,&lt;br&gt;
&lt;br&gt;
Both of them use the same internal random number generators, but&lt;br&gt;
randn() post-processes (sometimes requiring multiple values) to&lt;br&gt;
generate normally distributed numbers.&lt;br&gt;
&lt;br&gt;
In a recent thread (a week ago) 'random variable', Peter Perkins of The&lt;br&gt;
MathWorks posted a reference to the algorithms used in both cases:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/moler/random.pdf&quot;&gt;http://www.mathworks.com/moler/random.pdf&lt;/a&gt;&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;Prototypes are supertypes of their clones.           -- maplesoft</description>
    </item>
    <item>
      <pubDate>Tue, 01 May 2007 15:55:41 -0400</pubDate>
      <title>Re: Pseudo random generator</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/147115#370125</link>
      <author>Anish Goorah</author>
      <description>All random numbers generated are by definition pseudo random. Whether&lt;br&gt;
you need to use rand or randn depends on the application at hand.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;Walter Roberson wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In article &amp;lt;ef557ed.1@webcrossing.raydaftYaTP&amp;gt;,&lt;br&gt;
&amp;gt; Alissa gotenberg &amp;lt;fete7a_85@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;THNX FOR YOUR REPLY , I KNEW BEFORE BOUT THE rand() &amp; randn() ,&lt;br&gt;
&amp;gt; but&lt;br&gt;
&amp;gt;&amp;gt;the project specification said it must be pseudo random&lt;br&gt;
generated&lt;br&gt;
&amp;gt;&amp;gt;code ,&lt;br&gt;
&amp;gt;&amp;gt;so i wanted to know if there is a difference between the&lt;br&gt;
noramlly&lt;br&gt;
&amp;gt;&amp;gt;distributed random or uniform distributed randoms &amp; the pseudo&lt;br&gt;
&amp;gt; random&lt;br&gt;
&amp;gt;&amp;gt;.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Both rand() and randn() return pseudo-random sequences.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;cause i guess it is a different random generation algorithm ,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Both of them use the same internal random number generators, but&lt;br&gt;
&amp;gt; randn() post-processes (sometimes requiring multiple values) to&lt;br&gt;
&amp;gt; generate normally distributed numbers.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In a recent thread (a week ago) 'random variable', Peter Perkins of&lt;br&gt;
&amp;gt; The&lt;br&gt;
&amp;gt; MathWorks posted a reference to the algorithms used in both cases:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;lt;&lt;a href=&quot;http://www.mathworks.com/moler/random.pdf&quot;&gt;http://www.mathworks.com/moler/random.pdf&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; Prototypes are supertypes of their clones. -- maplesoft&lt;br&gt;
&amp;gt;</description>
    </item>
    <item>
      <pubDate>Tue, 01 May 2007 20:21:06 -0400</pubDate>
      <title>Re: Pseudo random generator</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/147115#370132</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;ef557ed.3@webcrossing.raydaftYaTP&amp;gt;,&lt;br&gt;
Anish Goorah &amp;lt;anish.goorah@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;All random numbers generated are by definition pseudo random.&lt;br&gt;
&lt;br&gt;
If I have a /dev/random system interface that produces true 32 bit&lt;br&gt;
random unsigned long (e.g., it interfaces to a geiger counter or lava&lt;br&gt;
lamp), and I read two values from there and use them to create a&lt;br&gt;
floating point number with 53 bit mantissa, then arguably&lt;br&gt;
I have &quot;generated&quot; the floating point number, but the floating&lt;br&gt;
point number would not be pseudo random.&lt;br&gt;
&lt;br&gt;
The matlab randn() algorithm uses pseudo random pairs (or sometimes&lt;br&gt;
additional values are needed) to generate normally distributed&lt;br&gt;
numbers. If the pseudo-random number generation underneath were&lt;br&gt;
replaced with a true random call (e.g., geiger counter, thermal&lt;br&gt;
noise, whatever was available), then although the actual random&lt;br&gt;
values employed might be uniformly distributed, the normal values&lt;br&gt;
output would have to be said to be &quot;generated&quot; -- but they would&lt;br&gt;
still be random, not pseudo random.&lt;br&gt;
&lt;br&gt;
The problem here is that &quot;generated&quot; has not been well-defined.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Programming is what happens while you're busy making other plans.</description>
    </item>
    <item>
      <pubDate>Tue, 01 May 2007 16:29:03 -0400</pubDate>
      <title>Re: Pseudo random generator</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/147115#370134</link>
      <author>Steve Conahan</author>
      <description>&quot;Alissa gotenberg&quot; &amp;lt;fete7a_85@hotmail.com&amp;gt; wrote in message &lt;br&gt;
news:ef557ed.-1@webcrossing.raydaftYaTP...&lt;br&gt;
&amp;gt; hi all ,&lt;br&gt;
&amp;gt; i wanted a pseudo random code generator for my project and a friend&lt;br&gt;
&amp;gt; told me that i can find some help here ,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; so plz if anyone know a source code for a pseudo random generator (in&lt;br&gt;
&amp;gt; matlab) , tell me about it .&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; best wishes ,&lt;br&gt;
&amp;gt; Alissa gotenberg .&lt;br&gt;
&lt;br&gt;
Hi Alissa,&lt;br&gt;
&lt;br&gt;
Do you mean a PN Sequence Generator consisting of delays and XORs and the &lt;br&gt;
like?  If so, there is a PN Sequence Generator with the Communications &lt;br&gt;
Toolbox (for MATLAB) and with the Communications Blockset (for Simulink):&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/comm/ug/seqgen.pn.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/comm/ug/seqgen.pn.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/commblks/ref/pnsequencegenerator.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/commblks/ref/pnsequencegenerator.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
This is in addition to rand and randn functions in base MATLAB (which are &lt;br&gt;
pseudorandom as well, with different pseudorandom algorithms, as noted by &lt;br&gt;
others).&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/moler/random.pdf&quot;&gt;http://www.mathworks.com/moler/random.pdf&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Cheers,&lt;br&gt;
Steve Conahan&lt;br&gt;
Communications Development&lt;br&gt;
The MathWorks, Inc.</description>
    </item>
    <item>
      <pubDate>Thu, 03 May 2007 11:19:03 -0400</pubDate>
      <title>Re: Pseudo random generator</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/147115#370557</link>
      <author>Alissa gotenberg</author>
      <description>THNX ALLLL ALOT FOR YOUR HELP ,&lt;br&gt;
&lt;br&gt;
you guys really saved my day .&lt;br&gt;
&lt;br&gt;
wish u all good luck&lt;br&gt;
Alissa.</description>
    </item>
    <item>
      <pubDate>Fri, 05 Jun 2009 02:06:02 -0400</pubDate>
      <title>Re: Pseudo random generator</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/147115#654804</link>
      <author>gggggg adfffffffff</author>
      <description>&quot;Alissa gotenberg&quot; &amp;lt;fete7a_85@hotmail.com&amp;gt; wrote in message &amp;lt;ef557ed.-1@webcrossing.raydaftYaTP&amp;gt;...&lt;br&gt;
&amp;gt; hi all ,&lt;br&gt;
&amp;gt; i wanted a pseudo random code generator for my project and a friend&lt;br&gt;
&amp;gt; told me that i can find some help here ,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; so plz if anyone know a source code for a pseudo random generator (in&lt;br&gt;
&amp;gt; matlab) , tell me about it .&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; best wishes ,&lt;br&gt;
&amp;gt; Alissa gotenberg .</description>
    </item>
  </channel>
</rss>

