src/base.lisp @ 839094aa1657

Cleanup
author Steve Losh <steve@stevelosh.com>
date Sat, 03 Feb 2018 14:35:52 -0500
parents 55c0df99bd7a
children ba8de6322022
(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))