Changes between Version 17 and Version 18 of RandomnessCommonLisp


Ignore:
Timestamp:
10/20/11 23:32:22 (6 years ago)
Author:
cowan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RandomnessCommonLisp

    v17 v18  
    2727Constructs and returns a random-source object whose state is an independent copy of the state of ''random-source''.  Calling this procedure is equivalent to calling `(make-random-source-from-state (random-source-state `''random-source''`))`, but potentially more efficient because it can avoid copying the state twice.  The result and ''random-source'' will henceforth return the same sequence of values, allowing the same series of pseudo-random numbers to be generated many times within a single program.   The CL equivalent is `make-random-state` with a random-state argument. 
    2828 
    29 `(current-random-source `[''random-source'']`)` 
     29`(current-random-source`)` 
    3030 
    31 A parameter that returns or sets the default random-source object used by `random`.  Its initial value MUST be a random-source object, but is implementation-dependent.  The CL equivalent is `*random-state*`. 
     31A parameter that returns the default random-source object used by `random`.  Its initial value MUST be a random-source object, but is implementation-dependent.  The CL equivalent is `*random-state*`. 
    3232 
    3333Note:  The equivalent of CL `(make-random-state)` and `(make-random-state nil)` is `(copy-random-source (current-random-source))`.