src/base.lisp @ 634d90a45d47

Add some basic L-Systems
author Steve Losh <steve@stevelosh.com>
date Tue, 06 Feb 2018 20:42:39 -0500
parents eefee58dd493
children 308e324d06da
(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))