src/base.lisp @ 2288ce7181a1

Randomize AC axiom
author Steve Losh <steve@stevelosh.com>
date Sat, 10 Feb 2018 15:43:15 -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))