6 lines
110 B
Text
6 lines
110 B
Text
|
|
(defun random-choice (items)
|
||
|
|
(nth (random (length items)) items))
|
||
|
|
|
||
|
|
(random-choice '("a" "b" "c"))
|
||
|
|
;; => "a"
|