diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-19 13:31:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-19 13:31:53 -0300 |
commit | 2f22c6bb79d209a55b3fc8e0b2d9c9f89f038174 (patch) | |
tree | 9fcece0aa1fa65f52b547c51e3c39181815f0887 /manual | |
parent | 3c0d3c6fbeea18f257102c62a01b036c7a5c5161 (diff) | |
download | lua-2f22c6bb79d209a55b3fc8e0b2d9c9f89f038174.tar.gz lua-2f22c6bb79d209a55b3fc8e0b2d9c9f89f038174.tar.bz2 lua-2f22c6bb79d209a55b3fc8e0b2d9c9f89f038174.zip |
'math.randomseed' always returns the two seed components
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/manual/manual.of b/manual/manual.of index 7f2596fa..1646f113 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -7798,8 +7798,10 @@ The default for @id{y} is zero. | |||
7798 | When called with no arguments, | 7798 | When called with no arguments, |
7799 | Lua generates a seed with | 7799 | Lua generates a seed with |
7800 | a weak attempt for randomness. | 7800 | a weak attempt for randomness. |
7801 | In this case, | 7801 | |
7802 | the call returns the two seed components that were used. | 7802 | This function returns the two seed components |
7803 | that were effectively used, | ||
7804 | so that setting them again repeats the sequence. | ||
7803 | 7805 | ||
7804 | To ensure a required level of randomness to the initial state | 7806 | To ensure a required level of randomness to the initial state |
7805 | (or contrarily, to have a deterministic sequence, | 7807 | (or contrarily, to have a deterministic sequence, |