B


Intro       Symbols A B C D E F G H I J K L M N O P Q R S T U V W X Y Z       Index  
between lb ub &optional exclude state [Function]

Returns number n such that lb<=n<ub and n!=exclude. Use exclude to avoid direct repetition. state is the random state object to use in the calculation, and defaults to *cm-state*.

Example:

? (between 1 2)
1

? (between 1 2.0)
1.234551

? (loop for n = (between 1 5 n) repeat 10 collect n)
(4 2 3 4 1 4 2 3 1 4)

See Also:

pick, pickl