[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re rand('state',0)
From: |
Mike Miller |
Subject: |
Re: Re rand('state',0) |
Date: |
Thu, 13 Oct 2005 18:34:14 -0500 (CDT) |
On Thu, 13 Oct 2005, David Bateman wrote:
Do you have octave-forge installed? If not the rand/randn generators in
octave itself are signifiantly slower and don't support the 'state'
argument. So I'd suggest you install octave-forge even if you disable
this line..
I just installed octave-forge's rand.oct to accompany Octave 2.1.71 and I
can tell you that it works as Steve had hoped. The rand('state',0)
command produces a row vector of 625 elements:
size(rand('state',0))
ans =
1 625
The vector produced by rand('state',0) is the same every time I run it.
Mike
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------