1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-24 04:50:27 +02:00

16688: clarify the pseudo-randomness of RANDOM.

This commit is contained in:
Clint Adams 2002-02-21 13:43:00 +00:00
parent f2da4d4ed8
commit d1f65a53bb
2 changed files with 11 additions and 1 deletions

View file

@ -574,9 +574,14 @@ and whenever the directory changes.
)
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>)(