mentat/docs/apis/rust/rand/trait.Rand.html

190 lines
121 KiB
HTML
Raw Normal View History

2018-06-21 14:44:35 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `Rand` trait in crate `rand`.">
<meta name="keywords" content="rust, rustlang, rust-lang, Rand">
<title>rand::Rand - Rust</title>
<link rel="stylesheet" type="text/css" href="../normalize.css">
<link rel="stylesheet" type="text/css" href="../rustdoc.css"
id="mainThemeStyle">
<link rel="stylesheet" type="text/css" href="../dark.css">
<link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle">
<script src="../storage.js"></script>
<link rel="shortcut icon" href="https://www.rust-lang.org/favicon.ico">
</head>
<body class="rustdoc trait">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<div class="sidebar-menu">&#9776;</div>
<a href='../rand/index.html'><img src='https://www.rust-lang.org/logos/rust-logo-128x128-blk.png' alt='logo' width='100'></a>
<p class='location'>Trait Rand</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.rand">rand</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-Rand">[T; 13]</a><a href="#impl-Rand">[T; 6]</a><a href="#impl-Rand">[T; 18]</a><a href="#impl-Rand">(A,)</a><a href="#impl-Rand">u8</a><a href="#impl-Rand">[T; 7]</a><a href="#impl-Rand">(A, B, C, D, E, F, G)</a><a href="#impl-Rand">[T; 5]</a><a href="#impl-Rand">(A, B, C)</a><a href="#impl-Rand">char</a><a href="#impl-Rand">[T; 31]</a><a href="#impl-Rand">[T; 17]</a><a href="#impl-Rand">u32</a><a href="#impl-Rand">(A, B, C, D, E)</a><a href="#impl-Rand">Option&lt;T&gt;</a><a href="#impl-Rand">[T; 25]</a><a href="#impl-Rand">[T; 24]</a><a href="#impl-Rand">f64</a><a href="#impl-Rand">[T; 26]</a><a href="#impl-Rand">i16</a><a href="#impl-Rand">(A, B, C, D, E, F, G, H, I, J, K)</a><a href="#impl-Rand">isize</a><a href="#impl-Rand">i8</a><a href="#impl-Rand">(A, B, C, D, E, F, G, H)</a><a href="#impl-Rand">[T; 9]</a><a href="#impl-Rand">(A, B, C, D, E, F, G, H, I, J)</a><a href="#impl-Rand">[T; 12]</a><a href="#impl-Rand">[T; 20]</a><a href="#impl-Rand">(A, B)</a><a href="#impl-Rand">u16</a><a href="#impl-Rand">(A, B, C, D)</a><a href="#impl-Rand">[T; 1]</a><a href="#impl-Rand">[T; 0]</a><a href="#impl-Rand">f32</a><a href="#impl-Rand">[T; 19]</a><a href="#impl-Rand">(A, B, C, D, E, F)</a><a href="#impl-Rand">[T; 21]</a><a href="#impl-Rand">[T; 29]</a><a href="#impl-Rand">[T; 30]</a><a href="#impl-Rand">usize</a><a href="#impl-Rand">[T; 4]</a><a href="#impl-Rand">i32</a><a href="#impl-Rand">[T; 23]</a><a href="#impl-Rand">()</a><a href="#impl-Rand">[T; 2]</a><a href="#impl-Rand">[T; 14]</a><a href="#impl-Rand">[T; 15]</a><a href="#impl-Rand">[T; 8]</a><a href="#impl-Rand">[T; 22]</a><a href="#impl-Rand">[T; 3]</a><a href="#impl-Rand">[T; 28]</a><a href="#impl-Rand">(A, B, C, D, E, F, G, H, I, J, K, L)</a><a href="#impl-Rand">bool</a><a href="#impl-Rand">[T; 11]</a><a href="#impl-Rand">[T; 27]</a><a href="#impl-Rand">(A, B, C, D, E, F, G, H, I)</a><a href="#impl-Rand">[T; 16]</a><a href="#impl-Rand">[T; 32]</a><a href="#impl-Rand">u64</a><a href="#impl-Rand">i64</a><a href="#impl-Rand">[T; 10]</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>rand</a></p><script>window.sidebarCurrent = {name: 'Rand', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
</nav>
<div class="theme-picker">
<button id="theme-picker" aria-label="Pick another theme!">
<img src="../brush.svg" width="18" alt="Pick another theme!">
</button>
<div id="theme-choices"></div>
</div>
<script src="../theme.js"></script>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press S to search, ? for more options…"
type="search">
</div>
</form>
</nav>
<section id='main' class="content"><h1 class='fqn'><span class='in-band'>Trait <a href='index.html'>rand</a>::<wbr><a class="trait" href=''>Rand</a></span><span class='out-of-band'><span id='render-detail'>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../src/rand/lib.rs.html#332-336' title='goto source code'>[src]</a></span></h1><div class="docblock type-decl"><pre class='rust trait'>pub trait Rand {
fn <a href='#tymethod.rand' class='fnname'>rand</a>&lt;R&gt;(rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>R) -&gt; Self<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../rand/trait.Rng.html" title="trait rand::Rng">Rng</a></span>;
}</pre></div><div class='docblock'><p>A type that can be randomly generated using an <code>Rng</code>.</p>
<h2 id="built-in-implementations" class="section-header"><a href="#built-in-implementations">Built-in Implementations</a></h2>
<p>This crate implements <code>Rand</code> for various primitive types. Assuming the
provided <code>Rng</code> is well-behaved, these implementations generate values with
the following ranges and distributions:</p>
<ul>
<li>Integers (<code>i32</code>, <code>u32</code>, <code>isize</code>, <code>usize</code>, etc.): Uniformly distributed
over all values of the type.</li>
<li><code>char</code>: Uniformly distributed over all Unicode scalar values, i.e. all
code points in the range <code>0...0x10_FFFF</code>, except for the range
<code>0xD800...0xDFFF</code> (the surrogate code points). This includes
unassigned/reserved code points.</li>
<li><code>bool</code>: Generates <code>false</code> or <code>true</code>, each with probability 0.5.</li>
<li>Floating point types (<code>f32</code> and <code>f64</code>): Uniformly distributed in the
half-open range <code>[0, 1)</code>. (The <a href="struct.Open01.html"><code>Open01</code></a>, <a href="struct.Closed01.html"><code>Closed01</code></a>, <a href="distributions/exponential/struct.Exp1.html"><code>Exp1</code></a>, and
<a href="distributions/normal/struct.StandardNormal.html"><code>StandardNormal</code></a> wrapper types produce floating point numbers with
alternative ranges or distributions.)</li>
</ul>
<p>The following aggregate types also implement <code>Rand</code> as long as their
component types implement it:</p>
<ul>
<li>Tuples and arrays: Each element of the tuple or array is generated
independently, using its own <code>Rand</code> implementation.</li>
<li><code>Option&lt;T&gt;</code>: Returns <code>None</code> with probability 0.5; otherwise generates a
random <code>T</code> and returns <code>Some(T)</code>.</li>
</ul>
</div>
<h2 id='required-methods' class='small-section-header'>
Required Methods<a href='#required-methods' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='tymethod.rand' class='method'><span id='rand.v' class='invisible'><code>fn <a href='#tymethod.rand' class='fnname'>rand</a>&lt;R&gt;(rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>R) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../rand/trait.Rng.html" title="trait rand::Rng">Rng</a>,&nbsp;</span></code></span></h3><div class='docblock'><p>Generates a random instance of this type using the specified source of
randomness.</p>
</div></div>
<h2 id='foreign-impls' class='small-section-header'>
Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a>
</h2>
<h3 id='impl-Rand' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 13]</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,&nbsp;</span></code><a href='#impl-Rand' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rand/rand_impls.rs.html#222-227' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.rand' class="method"><span id='rand.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.rand' class='fnname'>rand</a>&lt;R&gt;(_rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>R) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 13]</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../rand/trait.Rng.html" title="trait rand::Rng">Rng</a>,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rand/rand_impls.rs.html#224-226' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Rand-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 6]</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,&nbsp;</span></code><a href='#impl-Rand-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rand/rand_impls.rs.html#222-227' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.rand-1' class="method"><span id='rand.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.rand' class='fnname'>rand</a>&lt;R&gt;(_rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>R) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 6]</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../rand/trait.Rng.html" title="trait rand::Rng">Rng</a>,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rand/rand_impls.rs.html#224-226' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Rand-2' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 18]</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,&nbsp;</span></code><a href='#impl-Rand-2' class='anc
interval <code>[0,1)</code>.</p>
<p>See <code>Closed01</code> for the closed interval <code>[0,1]</code>,
and <code>Open01</code> for the open interval <code>(0,1)</code>.</p>
</div></div></span><h3 id='impl-Rand-18' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 26]</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,&nbsp;</span></code><a href='#impl-Rand-18' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rand/rand_impls.rs.html#222-227' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.rand-18' class="method"><span id='rand.v-19' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.rand' class='fnname'>rand</a>&lt;R&gt;(_rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>R) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 26]</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../rand/trait.Rng.html" title="trait rand::Rng">Rng</a>,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rand/rand_impls.rs.html#224-226' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Rand-19' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code><a href='#impl-Rand-19' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rand/rand_impls.rs.html#35-40' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.rand-19' class="method"><span id='rand.v-20' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.rand' class='fnname'>rand</a>&lt;R&gt;(rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>R) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../rand/trait.Rng.html" title="trait rand::Rng">Rng</a>,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rand/rand_impls.rs.html#37-39' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Rand-20' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;A, B, C, D, E, F, G, H, I, J, K&gt; <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A, B, C, D, E, F, G, H, I, J, K<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;C: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,<br>&n
interval <code>[0,1)</code>.</p>
<p>See <code>Closed01</code> for the closed interval <code>[0,1]</code>,
and <code>Open01</code> for the open interval <code>(0,1)</code>.</p>
</div></div></span><h3 id='impl-Rand-34' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 19]</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,&nbsp;</span></code><a href='#impl-Rand-34' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rand/rand_impls.rs.html#222-227' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.rand-34' class="method"><span id='rand.v-35' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.rand' class='fnname'>rand</a>&lt;R&gt;(_rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>R) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 19]</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../rand/trait.Rng.html" title="trait rand::Rng">Rng</a>,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rand/rand_impls.rs.html#224-226' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Rand-35' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;A, B, C, D, E, F&gt; <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A, B, C, D, E, F<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;C: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;E: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="../rand/trait.Rand.html" title="trait rand::Rand">Rand</a>,&nbsp;</span></code><a href='#impl-Rand-35' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rand/rand_impls.rs.html#182-197' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.rand-35' class="method"><span id='rand.v-36' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.rand' class='fnname'>rand</a>&lt;R&gt;(_rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>R) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A, B, C, D, E, F<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../rand/trait.Rng.html" title="trait rand::Rng">Rng</a>,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rand/rand_impls.rs.html#187-196' title='goto source code'>[src]</a></td></tr></tbody></table
<h2 id='implementors' class='small-section-header'>
Implementors<a href='#implementors' class='anchor'></a>
</h2>
<ul class='item-list' id='implementors-list'>
<li><table class='table-display'><tbody><tr><td><code>impl Rand for <a class="struct" href="../rand/struct.Closed01.html" title="struct rand::Closed01">Closed01</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>&gt;</code><td><div class='out-of-band'><a class='srclink' href='../src/rand/rand_impls.rs.html#140-147' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl Rand for <a class="struct" href="../rand/isaac/struct.IsaacRng.html" title="struct rand::isaac::IsaacRng">IsaacRng</a></code><td><div class='out-of-band'><a class='srclink' href='../src/rand/prng/isaac.rs.html#248-265' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl Rand for <a class="struct" href="../rand/struct.XorShiftRng.html" title="struct rand::XorShiftRng">XorShiftRng</a></code><td><div class='out-of-band'><a class='srclink' href='../src/rand/prng/xorshift.rs.html#92-101' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl Rand for <a class="struct" href="../rand/struct.Open01.html" title="struct rand::Open01">Open01</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>&gt;</code><td><div class='out-of-band'><a class='srclink' href='../src/rand/rand_impls.rs.html#130-139' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl Rand for <a class="struct" href="../rand/chacha/struct.ChaChaRng.html" title="struct rand::chacha::ChaChaRng">ChaChaRng</a></code><td><div class='out-of-band'><a class='srclink' href='../src/rand/prng/chacha.rs.html#224-232' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl Rand for <a class="struct" href="../rand/struct.Closed01.html" title="struct rand::Closed01">Closed01</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code><td><div class='out-of-band'><a class='srclink' href='../src/rand/rand_impls.rs.html#140-147' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl Rand for <a class="struct" href="../rand/isaac/struct.Isaac64Rng.html" title="struct rand::isaac::Isaac64Rng">Isaac64Rng</a></code><td><div class='out-of-band'><a class='srclink' href='../src/rand/prng/isaac64.rs.html#246-263' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl Rand for <a class="struct" href="../rand/distributions/exponential/struct.Exp1.html" title="struct rand::distributions::exponential::Exp1">Exp1</a></code><td><div class='out-of-band'><a class='srclink' href='../src/rand/distributions/exponential.rs.html#41-58' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl Rand for <a class="struct" href="../rand/distributions/normal/struct.StandardNormal.html" title="struct rand::distributions::normal::StandardNormal">StandardNormal</a></code><td><div class='out-of-band'><a class='srclink' href='../src/rand/distributions/normal.rs.html#39-74' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl Rand for <a class="struct" href="../rand/struct.Open01.html" title="struct rand::Open01">Open01</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code><td><div class='out-of-band'><a class='srclink' href='../src/rand/rand_impls.rs.html#130-139' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
</ul><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
src="../implementors/rand/trait.Rand.js">
</script></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt><kbd>?</kbd></dt>
<dd>Show this help dialog</dd>
<dt><kbd>S</kbd></dt>
<dd>Focus the search field</dd>
<dt><kbd></kbd></dt>
<dd>Move up in search results</dd>
<dt><kbd></kbd></dt>
<dd>Move down in search results</dd>
<dt><kbd></kbd></dt>
<dd>Switch tab</dd>
<dt><kbd>&#9166;</kbd></dt>
<dd>Go to active search result</dd>
<dt><kbd>+</kbd></dt>
<dd>Expand all sections</dd>
<dt><kbd>-</kbd></dt>
<dd>Collapse all sections</dd>
</dl>
</div>
<div class="infos">
<h2>Search Tricks</h2>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>type</code>, <code>macro</code>,
and <code>const</code>.
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code> or <code>* -> vec</code>)
</p>
</div>
</div>
</aside>
<script>
window.rootPath = "../";
window.currentCrate = "rand";
</script>
<script src="../main.js"></script>
<script defer src="../search-index.js"></script>
</body>
</html>