From bug-request at octave dot org Sat Apr 15 12:32:37 2006 Subject: Re: help rand version 2.9.x latest From: "Keith Goodman" To: "Jorge Barros de Abreu" Cc: bug at octave dot org Date: Sat, 15 Apr 2006 10:30:31 -0700 ------=_Part_10345_30084619.1145122231043 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/15/06, Keith Goodman wrote: > On 4/15/06, Keith Goodman wrote: > > Attach the patch to an email and send it to bug at octave dot org dot > > Don't forget that step. And if someone reports a typo in a doc string, read the doc string to see if you find any additional typos. This patch, in addition to the previous two typos, changes 'octave' to 'Octave', changes 'desireable' to 'desirable', and adds a space between the elements in the see also section. ------=_Part_10345_30084619.1145122231043 Content-Type: text/x-patch; name=rand.cc.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_em27wj4l Content-Disposition: attachment; filename="rand.cc.patch" 2006-04-15 Keith Goodman * DLD-FUNCTIONS/rand.cc: Doc string fix. ? rand.cc.patch Index: src/DLD-FUNCTIONS/rand.cc =================================================================== RCS file: /cvs/octave/src/DLD-FUNCTIONS/rand.cc,v retrieving revision 1.28 diff -u -r1.28 rand.cc --- src/DLD-FUNCTIONS/rand.cc 14 Apr 2006 04:01:40 -0000 1.28 +++ src/DLD-FUNCTIONS/rand.cc 15 Apr 2006 17:25:20 -0000 at @ -324,7 +324,7 @@ at noindent\n\ You may also initialize the state vector from an arbitrary vector of\n\ length <= 625 for at var{v} dot This new state will be a hash based on the\n\ -the value of at var{v}, not @var{v} itself.\n\ +value of at var{v}, not @var{v} itself.\n\ \n\ By default, the generator is initialized from at code{/dev/urandom} if it is\n\ available, otherwise from cpu time, wall clock time and the current\n\ at @ -340,10 +340,10 @@ reading 624 consecutive values.\n\ \n\ at code{rand} includes a second random number generator, that was the\n\ -previous generator used in octave. The new generator is used by default\n\ +previous generator used in Octave. The new generator is used by default\n\ as it is significantly faster than the old generator, and produces\n\ -random numebrs with a significantly longer cycle time. However, in\n\ -some circumstances it might be desireable to obtain the same random\n\ +random numbers with a significantly longer cycle time. However, in\n\ +some circumstances it might be desirable to obtain the same random\n\ sequences as used by the old generators. To do this the keyword\n\ \"seed\" is used to specify that the old generators should be use,\n\ as in\n\ at @ -363,7 +363,7 @@ at code{rand} to use the old generators, only setting the seed will.\n\ To cause at code{rand} to once again use the new generators, the\n\ keyword \"state\" should be used to reset the state of the at code{rand} dot \n\ - at seealso{randn,rande,randg,randp}\n\ + at seealso{randn, rande, randg, randp}\n\ at end deftypefn") { octave_value retval; ------=_Part_10345_30084619.1145122231043-- ------------------------------------------------------------- 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 -------------------------------------------------------------