Path: news.mathworks.com!not-for-mail
From: "Steve Conahan" <sconahan@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Pseudo random generator
Date: Tue, 1 May 2007 16:29:03 -0400
Organization: The MathWorks, Inc.
Lines: 34
Message-ID: <f187ug$r5n$1@fred.mathworks.com>
References: <ef557ed.-1@webcrossing.raydaftYaTP>
Reply-To: "Steve Conahan" <sconahan@mathworks.com>
NNTP-Posting-Host: conahans.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1178051344 27831 144.212.109.242 (1 May 2007 20:29:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 1 May 2007 20:29:04 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
Xref: news.mathworks.com comp.soft-sys.matlab:406297



"Alissa gotenberg" <fete7a_85@hotmail.com> wrote in message 
news:ef557ed.-1@webcrossing.raydaftYaTP...
> hi all ,
> i wanted a pseudo random code generator for my project and a friend
> told me that i can find some help here ,
>
> so plz if anyone know a source code for a pseudo random generator (in
> matlab) , tell me about it .
>
> best wishes ,
> Alissa gotenberg .

Hi Alissa,

Do you mean a PN Sequence Generator consisting of delays and XORs and the 
like?  If so, there is a PN Sequence Generator with the Communications 
Toolbox (for MATLAB) and with the Communications Blockset (for Simulink):

http://www.mathworks.com/access/helpdesk/help/toolbox/comm/ug/seqgen.pn.html

http://www.mathworks.com/access/helpdesk/help/toolbox/commblks/ref/pnsequencegenerator.html

This is in addition to rand and randn functions in base MATLAB (which are 
pseudorandom as well, with different pseudorandom algorithms, as noted by 
others).

http://www.mathworks.com/moler/random.pdf

Cheers,
Steve Conahan
Communications Development
The MathWorks, Inc.