lvaruzza/cl-randist — pull request #2 by pkhuong (2012-12-28 23:21:20+00:00)
Title: Some optimisations and rewritten type declarations

The first commit fixes a warning (i.e. the code is definitely wrong) regarding the declaim for `random-normal-bivariate`. There's also some code simplification/optimisation.

Given that the declaim specified it returned at least a double-float, and the code returned a list of floats, I went with the more idiomatic multiple value return of two double floats.

The rest is a bunch of interface-preserving rewriting. Mostly, assignments and tagbody are avoided in favour of let bindings and loop. On my macbook air/SBCL, `random-normal-ziggurat` is now ~13% faster (and `normal-bivariate` ~5%).