RANDOM() and RANDOM(FALSE) problem



> Incidentally, Clisp barfs on (compile-file "rand-mt19937.lisp") --
> it complains "cannot redefine built-in class # RANDOM-STATE>", although (load "rand-mt19937.lisp") is OK.
> Any idea about how to make Clisp compile happily?

I don't know, but I do know that I had some trouble with the package
definition on SBCL 0.8.16, which was fixed when I replaced the
old-style package definition with this:

(defpackage "MT19937"
  (:use :common-lisp)
  (:shadow #:random-state
	   #:random-state-p
	   #:random
	   #:*random-state*
	   #:make-random-state)
  (:export #:random-state
	   #:random-state-p
	   #:random
	   #:*random-state*
	   #:make-random-state
	   #:%random-single-float
	   #:%random-double-float
	   #:random-chunk
	   #:init-random-state))

Your CLISP problem sounds like it may have something to do with
packages, so this might help. It certainly can't hurt anything.

-Peter