99e172c5fdbf

cl-pcg: Update site.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 23 Mar 2017 14:06:45 +0000
parents ce8a7b89014e
children d6255709bbb9
branches/tags (none)
files cl-pcg/reference/index.html

Changes

--- a/cl-pcg/reference/index.html	Thu Mar 23 14:02:49 2017 +0000
+++ b/cl-pcg/reference/index.html	Thu Mar 23 14:06:45 2017 +0000
@@ -76,6 +76,13 @@
 </pre></div>
 
 
+<p>Generate and return a random number in the specified interval.</p>
+<p>If <code>max</code> is omitted the interval will be <code>[0, bound)</code>.</p>
+<p>If <code>max</code> is given the interval will be <code>[bound, max)</code>.</p>
+<p>If <code>inclusive?</code> is given the interval will be <code>[bound, max]</code>.</p>
+<p>If either of <code>bound</code> or <code>max</code> are floats, the result will be a float.
+  Otherwise the result will be an integer.</p>
+<p>As a side effect, the state of <code>pcg</code> will be advanced.</p>
 <h3 id="pcg-random-function_1"><code>PCG-RANDOM%</code> (function)</h3>
 <div class="codehilite"><pre><span/>(PCG-RANDOM% PCG)
 </pre></div>