help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bad random numbers


From: Joao Cardoso
Subject: Re: bad random numbers
Date: Tue, 13 Jul 1999 23:10:30 +0100

Mike Miller wrote:
> 
> On Tue, 13 Jul 1999, heberf wrote:
> 
> > I don't think this needs to be a concern.  Consider the following
> 
> It is a huge problem.  It doesn't seem to happen when running octave
> interactively.  It happens when running from a script or unix command
> line.

try:

   echo 'rand("seed",time);rand(3) ' | octave -q

On 2.1.14 this does not seem to suffer from the reported problem, if the
seed is initialized this way.

Joao

-- 
Joao Cardoso, INESC  |  e-mail:
R. Jose Falcao 110   |  tel:    + 351 2 2094345
4050 Porto, Portugal |  fax:    + 351 2 2008487



---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]