comparison src/DLD-FUNCTIONS/rand.cc @ 10846:a4f482e66b65

Grammarcheck more of the documentation. Use @noindent macro appropriately. Limit line length to 80 characters.
author Rik <octave@nomad.inbox5.com>
date Sun, 01 Aug 2010 20:22:17 -0700
parents 89f4d7e294cc
children 5eb10763069f
comparison
equal deleted inserted replaced
10845:c0ffe159ba1a 10846:a4f482e66b65
360 By default, the generator is initialized from @code{/dev/urandom} if it is\n\ 360 By default, the generator is initialized from @code{/dev/urandom} if it is\n\
361 available, otherwise from CPU time, wall clock time and the current\n\ 361 available, otherwise from CPU time, wall clock time and the current\n\
362 fraction of a second.\n\ 362 fraction of a second.\n\
363 \n\ 363 \n\
364 To compute the pseudo-random sequence, @code{rand} uses the Mersenne\n\ 364 To compute the pseudo-random sequence, @code{rand} uses the Mersenne\n\
365 Twister with a period of @math{2^{19937}-1} (See M. Matsumoto and T. Nishimura,\n\ 365 Twister with a period of @math{2^{19937}-1} (See M. Matsumoto and\n\
366 T. Nishimura,\n\
366 @cite{Mersenne Twister: A 623-dimensionally equidistributed uniform \n\ 367 @cite{Mersenne Twister: A 623-dimensionally equidistributed uniform \n\
367 pseudorandom number generator}, ACM Trans. on\n\ 368 pseudorandom number generator}, ACM Trans. on\n\
368 Modeling and Computer Simulation Vol. 8, No. 1, pp. 3-30, January 1998,\n\ 369 Modeling and Computer Simulation Vol. 8, No. 1, pp. 3-30, January 1998,\n\
369 @url{http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html}).\n\ 370 @url{http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html}).\n\
370 Do @strong{not} use for cryptography without securely hashing\n\ 371 Do @strong{not} use for cryptography without securely hashing\n\
382 \n\ 383 \n\
383 @example\n\ 384 @example\n\
384 rand (\"seed\", val)\n\ 385 rand (\"seed\", val)\n\
385 @end example\n\ 386 @end example\n\
386 \n\ 387 \n\
388 @noindent\n\
387 which sets the seed of the generator to @var{val}. The seed of the\n\ 389 which sets the seed of the generator to @var{val}. The seed of the\n\
388 generator can be queried with\n\ 390 generator can be queried with\n\
389 \n\ 391 \n\
390 @example\n\ 392 @example\n\
391 s = rand (\"seed\")\n\ 393 s = rand (\"seed\")\n\