src/base.lisp @ d3a901ef3501

Loom 2
author Steve Losh <steve@stevelosh.com>
date Sun, 04 Feb 2018 00:02:49 -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))