src/base.lisp @ 3e7390e1f690

Add some trees, and mutate the l-systems sometimes
author Steve Losh <steve@stevelosh.com>
date Tue, 20 Feb 2018 20:12:23 -0500
parents 308e324d06da
children 630bc79afdfd
(in-package :flax.base)

(defun rand (bound)
  (pcg:pcg-random t bound))

(defmacro with-seed (seed &body body)
  `(let ((pcg::*global-generator* (pcg:make-pcg :seed ,seed))) ,@body))