From: Clint Adams <clint@zsh.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@sunsite.dk
Subject: PATCH: RANDOM docs
Date: Thu, 21 Feb 2002 08:21:56 -0500 [thread overview]
Message-ID: <20020221132156.GA14693@dman.com> (raw)
In-Reply-To: <1020221070933.ZM1882@candle.brasslantern.com>
> Not a bug, so definitely shouldn't be in BUGS. The doc for RANDOM could
> make it more explicit that the results are is an intentionally repeatable
> psuedo-random sequence.
Index: Doc/Zsh/params.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/params.yo,v
retrieving revision 1.14
diff -u -r1.14 params.yo
--- Doc/Zsh/params.yo 31 Jan 2002 14:44:15 -0000 1.14
+++ Doc/Zsh/params.yo 21 Feb 2002 13:20:47 -0000
@@ -574,9 +574,14 @@
)
vindex(RANDOM)
item(tt(RANDOM) <S>)(
-A random integer from 0 to 32767, newly generated each time
+A pseudo-random integer from 0 to 32767, newly generated each time
this parameter is referenced. The random number generator
can be seeded by assigning a numeric value to tt(RANDOM).
+
+The values of tt(RANDOM) form an intentionally-repeatable pseudo-random
+sequence; subshells that reference tt(RANDOM) will result
+in identical pseudo-random values unless the value of tt(RANDOM) is
+referenced or seeded in the parent shell in between subshell invocations.
)
vindex(SECONDS)
item(tt(SECONDS) <S>)(
next prev parent reply other threads:[~2002-02-21 13:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-21 4:15 older issues Clint Adams
2002-02-21 7:09 ` Bart Schaefer
2002-02-21 13:21 ` Clint Adams [this message]
2002-02-21 13:39 ` Clint Adams
2002-02-21 15:09 ` Etc/.distfiles Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020221132156.GA14693@dman.com \
--to=clint@zsh.org \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).