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-github-2f22c6bb79d209a55b3fc8e0b2d9c9f89f038174.tar.gz |
'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. When called with no arguments, Lua generates a seed with a weak attempt for randomness. -In this case, -the call returns the two seed components that were used. + +This function returns the two seed components +that were effectively used, +so that setting them again repeats the sequence. To ensure a required level of randomness to the initial state (or contrarily, to have a deterministic sequence, |