[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bad random numbers
From: |
Mike Miller |
Subject: |
Re: bad random numbers |
Date: |
Tue, 13 Jul 1999 23:43:54 -0500 (CDT) |
Thanks to John Judge and Bill Lash for clarifying the problem, and thanks
to Bill Lash for writing a patch.
I used to think that incrementing the seed by a small amount did not
increment the first random number by a small amount. Now I know that I
was mistaken. Both octave and MATLAB 4 generators prove I was wrong on
this point. So the suggestion to "warm up" the generator makes sense
to me now.
The use of 'ceil' insted of 'floor' in John Judge's octave code seems to
give the same result I was getting originally. With floor, numbers
increment in the opposite direction than when ceiling is used. I don't
know why, but it isn't important.
I think it would be good to have Bill Lash's code incorporated in the
standard octave source. I'm assuming it does what it's supposed to do and
won't cause problems on other systems.
Thanks for all the pointers!
Mike
--
Michael B. Miller
University of Missouri--Columbia
http://taxa.psyc.missouri.edu/~mbmiller/
---------------------------------------------------------------------
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
---------------------------------------------------------------------
- Re: bad random numbers, (continued)
Re: bad random numbers, Mike Miller, 1999/07/13
- Re: bad random numbers, John W. Eaton, 1999/07/13
- Re: bad random numbers, Mike Miller, 1999/07/13
- Re: bad random numbers, John W. Eaton, 1999/07/13
- Re: bad random numbers, A+A Adler, 1999/07/13
- Re: bad random numbers, Mike Miller, 1999/07/13
- Re: bad random numbers, John Judge, 1999/07/13
- Re: bad random numbers, lash, 1999/07/13
- Re: bad random numbers,
Mike Miller <=
- Re: bad random numbers, lash, 1999/07/14
- Re: bad random numbers, Jim Van Zandt, 1999/07/14
- Re: bad random numbers, John W. Eaton, 1999/07/14
Re: bad random numbers, Thomas Walter, 1999/07/14
Re: bad random numbers, Eric Ortega, 1999/07/15
Re: bad random numbers, Jim Van Zandt, 1999/07/14
Re: bad random numbers, John Smith, 1999/07/14
Re: bad random numbers, heberf, 1999/07/13