lispdoc - results for random |
(random arg &optional (state *random-state*)) | Undocumented
|
Example:(defun random-elt (choices) "Choose an element from a list at random." (elt choices (random (length choices)))) | Mentioned in: CLtL2 - 12.9. Random Numbers CLtL2 - 25.1.4. Similarity of Constants HyperSpec - 22.1.3.10 Printing Random States HyperSpec - Function RANDOM On Lisp - Classes and Instances On Lisp - When Capture Occurs PCL - local flow of control PCL - other special operators PCL - other ways to modify places PCL - plugging the leaks PCL - query parameters |
random-state | Undocumented
|
| Mentioned in: CLtL2 - 12.9. Random Numbers CLtL2 - 19.5. Defstruct Options CLtL2 - 2.11. Random-States CLtL2 - 2.15. Overlap, Inclusion, and Disjointness of Types CLtL2 - 22.1.6. What the Print Function Produces CLtL2 - 25.1.4. Similarity of Constants HyperSpec - 12.1.7 Random-State Operations HyperSpec - System Class RANDOM-STATE PCL - running the app | |
*random-state | |
| Mentioned in: HyperSpec - Variable *RANDOM-STATE | |
*random-state* | Undocumented
|
| Mentioned in: CLtL2 - 12.9. Random Numbers PCL - other special operators | |
(random-state-p object) | Undocumented
|
| Mentioned in: CLtL2 - 12.9. Random Numbers CLtL2 - 6.2.2. Specific Data Type Predicates HyperSpec - Function RANDOM-STATE-P | |
(make-random-state &optional state) | Function: Make a random state object. The optional STATE argument specifies a seed for deterministic pseudo-random number generation. As per the Common Lisp standard, - If STATE is NIL or not supplied or is NIL, return a copy of the default *RANDOM-STATE*. - If STATE is a random state, return a copy of it. - If STATE is T, return a randomly initialized state (using operating-system provided randomness source where available, otherwise a poor substitute based on internal time and pid) See SB-EXT:SEED-RANDOM-STATE for a SBCL extension to this functionality.
|
| Mentioned in: CLtL2 - 12.9. Random Numbers CLtL2 - 22.1.6. What the Print Function Produces CLtL2 - 25.1.4. Similarity of Constants HyperSpec - Function MAKE-RANDOM-STATE | |
(alexandria.0.dev:random-elt sequence &key (start 0) end) | Function: Returns a random element from SEQUENCE bounded by START and END. Signals an error if the SEQUENCE is not a proper sequence.
|
(alexandria.0.dev:gaussian-random &optional min max) | Function: Returns two gaussian random double floats as the primary and secondary value, optionally constrained by MIN and MAX. Gaussian random numbers form a standard normal distribution around 0.0d0.
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |