Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] mention zsh/random in the description of $RANDOM
- X-seq: zsh-workers 53960
- From: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] mention zsh/random in the description of $RANDOM
- Date: Mon, 22 Sep 2025 14:04:36 +0900
- Archived-at: <https://zsh.org/workers/53960>
- List-id: <zsh-workers.zsh.org>
Following the recent discussion in zsh-users, I think it would
be better to mention zsh/random module in the description of
the variable RANDOM in zshparam(1).
Any comments?
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo
index dd4519622..5d0fa9555 100644
--- a/Doc/Zsh/params.yo
+++ b/Doc/Zsh/params.yo
@@ -926,6 +926,12 @@ 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.
+
+tt(RANDOM) uses the system's library function tt(rand+LPAR()3+RPAR()).
+You may use
+ifzman(the zsh/random module (see zmanref(zshmodules)))\
+ifnzman(noderef(The zsh/random Module))
+if higher degree of randomness is required.
)
vindex(SECONDS)
item(tt(SECONDS) <S>)(
Messages sorted by:
Reverse Date,
Date,
Thread,
Author