(defun lotto-column ()
"Return 6 unique numbers as a list"
(let ((nums nil))
(loop
(when (= (list-length nums) 6)
(return))
(let ((val nil))
(loop
(setf val (random 42))
(when (not (numberp (position val nums)))
(return)))
(push val nums)))
nums))
(defun lotto-columns (x)
(dotimes (i x)
(dolist (num (lotto-column))
(format t "[~2a] " num))
(format t "~%")))
(lotto-columns 4)
KGRlZnVuIGxvdHRvLWNvbHVtbiAoKQogICJSZXR1cm4gNiB1bmlxdWUgbnVtYmVycyBhcyBhIGxpc3QiCiAgKGxldCAoKG51bXMgbmlsKSkKICAgIChsb29wCiAgICAgICAod2hlbiAoPSAobGlzdC1sZW5ndGggbnVtcykgNikKICAgICAgICAgKHJldHVybikpCiAgICAgICAobGV0ICgodmFsIG5pbCkpCiAgICAgICAgIChsb29wCiAgICAgICAgICAgIChzZXRmIHZhbCAocmFuZG9tIDQyKSkKICAgICAgICAgICAgKHdoZW4gKG5vdCAobnVtYmVycCAocG9zaXRpb24gdmFsIG51bXMpKSkKICAgICAgICAgICAgICAocmV0dXJuKSkpCiAgICAgICAgIChwdXNoIHZhbCBudW1zKSkpCiAgICBudW1zKSkKCihkZWZ1biBsb3R0by1jb2x1bW5zICh4KQogIChkb3RpbWVzIChpIHgpCiAgICAoZG9saXN0IChudW0gKGxvdHRvLWNvbHVtbikpIAogICAgICAoZm9ybWF0IHQgIlt+MmFdICIgbnVtKSkKICAgIChmb3JtYXQgdCAifiUiKSkpCgoKKGxvdHRvLWNvbHVtbnMgNCkK