<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>6.2. Random-States</title><link rel="stylesheet" href="ecl.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="The ECL manual"><link rel="up" href="ch06.html" title="Chapter 6. Numbers"><link rel="prev" href="ch06.html" title="Chapter 6. Numbers"><link rel="next" href="ch07.html" title="Chapter 7. Characters"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">6.2. Random-States</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch06.html">Prev</a> </td><th width="60%" align="center">Chapter 6. Numbers</th><td width="20%" align="right"> <a accesskey="n" href="ch07.html">Next</a></td></tr></table><hr></div><div class="section" title="6.2. Random-States"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sec.ansi.random-states"></a>6.2. Random-States</h2></div></div></div><p><span class="application">ECL</span> provides a reader macro <code class="literal">#$</code> that reads a random state. <code class="literal">#$<em class="replaceable"><code>integer</code></em></code> is equivalent to <code class="code">(make-random-state <em class="replaceable"><code>integer</code></em>)</code>. The same format is used when a random state is printed.</p><div class="important" title="Important" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Important</h3><p>Random states are implemented using a very crude 32-bits algorithm which probably has a short period. Help is welcome in improving it.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch06.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch06.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch07.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 6. Numbers </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 7. Characters</td></tr></table></div></body></html>