src/base.lisp @ cb69666ad32f

Update triangulation and a bit more
author Steve Losh <steve@stevelosh.com>
date Wed, 14 Mar 2018 22:52:58 -0400
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))