std-random-state-p | ![]() ![]() |
(std-random-state-p <state>)
Checks if the argument is a random-state object. This function is only used to be able to do type checks before using (std-make-random-state).
The state object is either a internal VL object of type _LPPTYPE
or a named list, a list which car is the symbol :RANDOM-STATE
, which second element is a function object and the rest are numbers.
see test/RANDTST.LSP
(setq state (std-make-random-state nil)) (std-random-state-p state) => T
state: the value which was returned by std-make-random-state. Or any user defined state.
Returns T or nil.
None.
(std-require 'RANDOM)
Defined in RANDOM only