From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Help with random number generator in matlab
Date: Sun, 12 Apr 2009 14:53:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <grsv8d$sol$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1239547981 29461 (12 Apr 2009 14:53:01 GMT)
NNTP-Posting-Date: Sun, 12 Apr 2009 14:53:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1351843
Xref: comp.soft-sys.matlab:532148

I need to make a random number generator using matlab, I could have chose to use mathmatica but I find matlab easier to use. Well anyway I have created a m file in matlab
where d is the number I want to to go to, I have chosen I(1) and I(2) and I need it  to get I(1) to I(d) and then put it in a series. This is the first time ive used series in matlab and I need some help.
m file:

n = 2:(d - 1)
I(1) = 1
I(2) = 1
I(n+1) = n*A + B*I(n)*I(n-1)

Can anyone give me push in the right direction, thanks