summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS18
1 files changed, 11 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index 7b142282a..5e6b45bfa 100644
--- a/NEWS
+++ b/NEWS
@@ -89,10 +89,10 @@ same type between zero (inclusive) and N (exclusive). The values
returned have a uniform distribution.
The optional argument STATE must be of the type produced by
-`(make-random-state)'. It defaults to the value of the variable
-`*random-state*'. This object is used to maintain the state of the
-pseudo-random-number generator and is altered as a side effect of
-the `random' operation.
+`copy-random-state' or `seed->random-state'. It defaults to the value
+of the variable `*random-state*'. This object is used to maintain the
+state of the pseudo-random-number generator and is altered as a side
+effect of the `random' operation.
** New variable: *random-state*
Holds a data structure that encodes the internal state of the
@@ -102,13 +102,17 @@ printed out and successfully read back in, but may or may not
function correctly as a random-number state object in another
implementation.
-** New function: make-random-state [STATE|SEED]
+** New function: copy-random-state [STATE]
Returns a new object of type suitable for use as the value of the
variable `*random-state*' and as a second argument to `random'.
If argument STATE is given, a copy of it is returned. Otherwise a
copy of `*random-state*' is returned.
-If SEED is given (a string or an integer), a new state is
-generated and initialized using SEED.
+
+** New function: seed->random-state SEED
+Returns a new object of type suitable for use as the value of the
+variable `*random-state*' and as a second argument to `random'.
+SEED is a string or a number. A new state is generated and
+initialized using SEED.
** New function: random:uniform [STATE]
Returns an uniformly distributed inexact real random number in the