src/base.lisp @ 55c0df99bd7a

Initial commit
author Steve Losh <steve@stevelosh.com>
date Sat, 03 Feb 2018 14:31:14 -0500
parents (none)
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))