配列の要素をランダムに抽出する - lisp-cookbook-ja/common-lisp GitHub Wiki 配列 配列の要素をランダムに抽出する aref と random と length を組み合わせることで実現できます。 (let* ((a #(a b c d e)) (len (length a))) (aref a (random len))) ;=> B ;実行ごとにランダム