std-random-state-p


Synopsis

(std-random-state-p <state>)

Description

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

Example

(setq state (std-make-random-state nil))
(std-random-state-p state) => T

Arguments

state: the value which was returned by std-make-random-state. Or any user defined state.

Return Value

Returns T or nil.

Side Effects

None.

Module

(std-require 'RANDOM)

Defined in RANDOM only