1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-14 16:15:41 +00:00
X10D/api/X10D.Core.RandomExtensions.html

1198 lines
55 KiB
HTML
Raw Normal View History

2024-06-12 14:17:02 +01:00
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class RandomExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class RandomExtensions
| X10D ">
<meta name="generator" content="docfx 2.56.7.0">
<link rel="shortcut icon" href="../images/favicon.png">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/night-owl.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" integrity="sha384-EvBWSlnoFgZlXJvpzS+MAUEjvN7+gcCwH+qh7GRFOGgZO0PuwOFro7qPOJnLfe7l" crossorigin="anonymous">
<link rel="stylesheet" href="../styles/config.css">
<link rel="stylesheet" href="../styles/discord.css">
<link rel="stylesheet" href="../styles/singulink.css">
<link rel="stylesheet" href="../styles/main.css">
<meta property="docfx:navrel" content="../toc.html">
<meta property="docfx:tocrel" content="toc.html">
<meta property="docfx:rel" content="../">
<meta property="docfx:newtab" content="true">
</head>
<body>
<div class="top-navbar">
<a class="burger-icon" onclick="toggleMenu()">
<svg name="Hamburger" style="vertical-align: middle;" width="34" height="34" viewbox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M20 6H4V9H20V6ZM4 10.999H20V13.999H4V10.999ZM4 15.999H20V18.999H4V15.999Z"></path></svg>
</a>
<a class="brand" href="../index.html">
<img src="../images/favicon.png" alt="X10D" class="logomark">
<span class="brand-title">X10D</span>
</a> </div>
<div class="body-content">
<div id="blackout" class="blackout" onclick="toggleMenu()"></div>
<nav id="sidebar" role="navigation">
<div class="sidebar">
<div>
<div class="mobile-hide">
<a class="brand" href="../index.html">
<img src="../images/favicon.png" alt="X10D" class="logomark">
<span class="brand-title">X10D</span>
</a> </div>
<div class="sidesearch">
<form id="search" role="search" class="search">
<i class="bi bi-search search-icon"></i>
<input type="text" id="search-query" placeholder="Search" autocomplete="off">
</form>
</div>
<div id="navbar">
</div>
</div> <div class="sidebar-item-separator"></div>
<div id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="footer">
<strong>DocFX + Singulink = ♥</strong>
</div> </nav>
<main class="main-panel">
<div id="search-results" style="display: none;">
<h1 class="search-list">Search Results for <span></span></h1>
<div class="sr-items">
<p><i class="bi bi-hourglass-split index-loading"></i></p>
</div>
<ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
</div>
<div role="main" class="hide-when-search">
<div class="subnav navbar navbar-default">
<div class="container hide-when-search" id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</div>
</div>
<article class="content wrap" id="_content" data-uid="X10D.Core.RandomExtensions">
<h1 id="X10D_Core_RandomExtensions" data-uid="X10D.Core.RandomExtensions" class="text-break">Class RandomExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:System.Random"></see>.</p>
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><span class="xref">System.Object</span></div>
<div class="level1"><span class="xref">RandomExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Core.html">X10D.Core</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Core_RandomExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class RandomExtensions : object</code></pre>
</div>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_Next__1_Random_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.Next%60%601(Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L23">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_Next_" data-uid="X10D.Core.RandomExtensions.Next*"></a>
<h4 id="X10D_Core_RandomExtensions_Next__1_Random_" data-uid="X10D.Core.RandomExtensions.Next``1(Random)">Next&lt;T&gt;(Random)</h4>
<div class="markdown level1 summary"><p>Returns a random value that defined in a specified enum.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static T Next&lt;T&gt;(this Random random)
where T : struct, Enum</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>A <code data-dev-comment-type="typeparamref" class="typeparamref">T</code> value at index <code>n</code> where <code>n = </code><see cref="!:System.Random.Next(int)"></see>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">T</span></td>
<td><p>An enum type.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextBoolean_Random_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextBoolean(Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L47">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextBoolean_" data-uid="X10D.Core.RandomExtensions.NextBoolean*"></a>
<h4 id="X10D_Core_RandomExtensions_NextBoolean_Random_" data-uid="X10D.Core.RandomExtensions.NextBoolean(Random)">NextBoolean(Random)</h4>
<div class="markdown level1 summary"><p>Returns either <span class="xref">true</span> or <span class="xref">false</span> based on the next generation of the current
<see cref="!:System.Random"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool NextBoolean(this Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><span class="xref">true</span> if the return value from <see cref="!:System.Random.NextDouble()"></see> is greater than or
equal to 0.5
-or-
<span class="xref">false</span> otherwise.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextByte_Random_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextByte(Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L232">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextByte_" data-uid="X10D.Core.RandomExtensions.NextByte*"></a>
<h4 id="X10D_Core_RandomExtensions_NextByte_Random_" data-uid="X10D.Core.RandomExtensions.NextByte(Random)">NextByte(Random)</h4>
<div class="markdown level1 summary"><p>Returns a non-negative random integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte NextByte(this Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><p>An 8-bit unsigned integer that is greater than or equal to 0, and less than <see cref="!:byte.MaxValue"></see>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextByte_Random_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextByte(Random%2CSystem.Byte)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L256">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextByte_" data-uid="X10D.Core.RandomExtensions.NextByte*"></a>
<h4 id="X10D_Core_RandomExtensions_NextByte_Random_System_Byte_" data-uid="X10D.Core.RandomExtensions.NextByte(Random,System.Byte)">NextByte(Random, Byte)</h4>
<div class="markdown level1 summary"><p>Returns a non-negative random integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte NextByte(this Random random, byte maxValue)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">maxValue</span></td>
<td><p>The exclusive upper bound of the random number to be generated. <code data-dev-comment-type="paramref" class="paramref">maxValue</code> must be greater than or
equal to 0.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><p>An 8-bit unsigned integer that is greater than or equal to 0, and less than <code data-dev-comment-type="paramref" class="paramref">maxValue</code>; that is, the
range of return values ordinarily includes 0 but not <code data-dev-comment-type="paramref" class="paramref">maxValue</code>. However, if
<code data-dev-comment-type="paramref" class="paramref">maxValue</code> equals 0, <code data-dev-comment-type="paramref" class="paramref">maxValue</code> is returned.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextByte_Random_System_Byte_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextByte(Random%2CSystem.Byte%2CSystem.Byte)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L285">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextByte_" data-uid="X10D.Core.RandomExtensions.NextByte*"></a>
<h4 id="X10D_Core_RandomExtensions_NextByte_Random_System_Byte_System_Byte_" data-uid="X10D.Core.RandomExtensions.NextByte(Random,System.Byte,System.Byte)">NextByte(Random, Byte, Byte)</h4>
<div class="markdown level1 summary"><p>Returns a non-negative random integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte NextByte(this Random random, byte minValue, byte maxValue)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">minValue</span></td>
<td><p>The inclusive lower bound of the random number to be generated.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">maxValue</span></td>
<td><p>The exclusive upper bound of the random number to be generated. <code data-dev-comment-type="paramref" class="paramref">maxValue</code> must be greater than or
equal to <code data-dev-comment-type="paramref" class="paramref">minValue</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><p>An 8-bit unsigned integer greater than or equal to <code data-dev-comment-type="paramref" class="paramref">minValue</code> and less than
<code data-dev-comment-type="paramref" class="paramref">maxValue</code>; that is, the range of return values includes <code data-dev-comment-type="paramref" class="paramref">minValue</code> but not
<code data-dev-comment-type="paramref" class="paramref">maxValue</code>. If <code data-dev-comment-type="paramref" class="paramref">minValue</code> equals <code data-dev-comment-type="paramref" class="paramref">maxValue</code>,
<code data-dev-comment-type="paramref" class="paramref">minValue</code> is returned.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextDouble_Random_System_Double_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextDouble(Random%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L70">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextDouble_" data-uid="X10D.Core.RandomExtensions.NextDouble*"></a>
<h4 id="X10D_Core_RandomExtensions_NextDouble_Random_System_Double_" data-uid="X10D.Core.RandomExtensions.NextDouble(Random,System.Double)">NextDouble(Random, Double)</h4>
<div class="markdown level1 summary"><p>Returns a non-negative random double-precision floating point number that is less than the specified maximum.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static double NextDouble(this Random random, double maxValue)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Double</span></td>
<td><span class="parametername">maxValue</span></td>
<td><p>The exclusive upper bound of the random number returned. This value must be greater than or equal to 0.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Double</span></td>
<td><p>A random double-precision floating point number that is greater than or equal to 0, and less than
<code data-dev-comment-type="paramref" class="paramref">maxValue</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextDouble_Random_System_Double_System_Double_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextDouble(Random%2CSystem.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L102">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextDouble_" data-uid="X10D.Core.RandomExtensions.NextDouble*"></a>
<h4 id="X10D_Core_RandomExtensions_NextDouble_Random_System_Double_System_Double_" data-uid="X10D.Core.RandomExtensions.NextDouble(Random,System.Double,System.Double)">NextDouble(Random, Double, Double)</h4>
<div class="markdown level1 summary"><p>Returns a random double-precision floating point number that is within a specified range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static double NextDouble(this Random random, double minValue, double maxValue)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Double</span></td>
<td><span class="parametername">minValue</span></td>
<td><p>The inclusive lower bound of the random number returned.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Double</span></td>
<td><span class="parametername">maxValue</span></td>
<td><p>The exclusive upper bound of the random number returned. This value must be greater than or equal to
<code data-dev-comment-type="paramref" class="paramref">minValue</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Double</span></td>
<td><p>A random double-precision floating point number between <code data-dev-comment-type="paramref" class="paramref">minValue</code> and
<code data-dev-comment-type="paramref" class="paramref">maxValue</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextFrom__1_Random_IEnumerable___0__.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextFrom%60%601(Random%2CIEnumerable%7B%60%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L136">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextFrom_" data-uid="X10D.Core.RandomExtensions.NextFrom*"></a>
<h4 id="X10D_Core_RandomExtensions_NextFrom__1_Random_IEnumerable___0__" data-uid="X10D.Core.RandomExtensions.NextFrom``1(Random,IEnumerable{``0})">NextFrom&lt;T&gt;(Random, IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Returns a random element from <code data-dev-comment-type="paramref" class="paramref">source</code> using the <see cref="!:System.Random"></see> instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static T NextFrom&lt;T&gt;(this Random random, IEnumerable&lt;T&gt; source)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
<tr>
<td><span class="xref">IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source collection from which to draw.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>A random element of type <code data-dev-comment-type="typeparamref" class="typeparamref">T</code> from <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">T</span></td>
<td><p>The element type.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Core_RandomExtensions_NextFrom__1_Random_IEnumerable___0___examples">Examples</h5>
<pre><code>var list = new List&lt;int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
var random = new Random();
var number = random.NextFrom(list);</code></pre>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextFrom__1_Random_ReadOnlySpan___0__.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextFrom%60%601(Random%2CReadOnlySpan%7B%60%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L214">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextFrom_" data-uid="X10D.Core.RandomExtensions.NextFrom*"></a>
<h4 id="X10D_Core_RandomExtensions_NextFrom__1_Random_ReadOnlySpan___0__" data-uid="X10D.Core.RandomExtensions.NextFrom``1(Random,ReadOnlySpan{``0})">NextFrom&lt;T&gt;(Random, ReadOnlySpan&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Returns a random element from the specified readonly span of elements using the current <see cref="!:System.Random"></see>
instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static T NextFrom&lt;T&gt;(this Random random, ReadOnlySpan&lt;T&gt; source)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
<tr>
<td><span class="xref">ReadOnlySpan</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The readonly span of elements from which to draw.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>A random element of type <code data-dev-comment-type="typeparamref" class="typeparamref">T</code> from <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">T</span></td>
<td><p>The element type.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Core_RandomExtensions_NextFrom__1_Random_ReadOnlySpan___0___examples">Examples</h5>
<pre><code>Span&lt;int> span = stackalloc span[5];
// populate the span ...
var random = new Random();
var number = random.NextFrom(span.AsReadOnly());</code></pre>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextFrom__1_Random_Span___0__.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextFrom%60%601(Random%2CSpan%7B%60%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L182">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextFrom_" data-uid="X10D.Core.RandomExtensions.NextFrom*"></a>
<h4 id="X10D_Core_RandomExtensions_NextFrom__1_Random_Span___0__" data-uid="X10D.Core.RandomExtensions.NextFrom``1(Random,Span{``0})">NextFrom&lt;T&gt;(Random, Span&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Returns a random element from the specified span of elements using the current <see cref="!:System.Random"></see> instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static T NextFrom&lt;T&gt;(this Random random, Span&lt;T&gt; source)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span of elements from which to draw.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>A random element of type <code data-dev-comment-type="typeparamref" class="typeparamref">T</code> from <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">T</span></td>
<td><p>The element type.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Core_RandomExtensions_NextFrom__1_Random_Span___0___examples">Examples</h5>
<pre><code>Span&lt;int> span = stackalloc span[5];
// populate the span ...
var random = new Random();
var number = random.NextFrom(span);</code></pre>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextInt16_Random_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextInt16(Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L303">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextInt16_" data-uid="X10D.Core.RandomExtensions.NextInt16*"></a>
<h4 id="X10D_Core_RandomExtensions_NextInt16_Random_" data-uid="X10D.Core.RandomExtensions.NextInt16(Random)">NextInt16(Random)</h4>
<div class="markdown level1 summary"><p>Returns a non-negative random integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short NextInt16(this Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><p>An 16-bit signed integer that is greater than or equal to 0, and less than <see cref="!:short.MaxValue"></see>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextInt16_Random_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextInt16(Random%2CSystem.Int16)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L328">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextInt16_" data-uid="X10D.Core.RandomExtensions.NextInt16*"></a>
<h4 id="X10D_Core_RandomExtensions_NextInt16_Random_System_Int16_" data-uid="X10D.Core.RandomExtensions.NextInt16(Random,System.Int16)">NextInt16(Random, Int16)</h4>
<div class="markdown level1 summary"><p>Returns a non-negative random integer that is less than the specified maximum.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short NextInt16(this Random random, short maxValue)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">maxValue</span></td>
<td><p>The exclusive upper bound of the random number to be generated. <code data-dev-comment-type="paramref" class="paramref">maxValue</code> must be greater than or
equal to 0.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><p>A 16-bit signed integer that is greater than or equal to 0, and less than <code data-dev-comment-type="paramref" class="paramref">maxValue</code>; that is, the
range of return values ordinarily includes 0 but not <code data-dev-comment-type="paramref" class="paramref">maxValue</code>. However, if
<code data-dev-comment-type="paramref" class="paramref">maxValue</code> equals 0, <code data-dev-comment-type="paramref" class="paramref">maxValue</code> is returned.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextInt16_Random_System_Int16_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextInt16(Random%2CSystem.Int16%2CSystem.Int16)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L362">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextInt16_" data-uid="X10D.Core.RandomExtensions.NextInt16*"></a>
<h4 id="X10D_Core_RandomExtensions_NextInt16_Random_System_Int16_System_Int16_" data-uid="X10D.Core.RandomExtensions.NextInt16(Random,System.Int16,System.Int16)">NextInt16(Random, Int16, Int16)</h4>
<div class="markdown level1 summary"><p>Returns a random integer that is within a specified range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short NextInt16(this Random random, short minValue, short maxValue)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">minValue</span></td>
<td><p>The inclusive lower bound of the random number to be generated.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">maxValue</span></td>
<td><p>The exclusive upper bound of the random number to be generated. <code data-dev-comment-type="paramref" class="paramref">maxValue</code> must be greater than or
equal to <code data-dev-comment-type="paramref" class="paramref">minValue</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><p>An 8-bit unsigned integer greater than or equal to <code data-dev-comment-type="paramref" class="paramref">minValue</code> and less than
<code data-dev-comment-type="paramref" class="paramref">maxValue</code>; that is, the range of return values includes <code data-dev-comment-type="paramref" class="paramref">minValue</code> but not
<code data-dev-comment-type="paramref" class="paramref">maxValue</code>. If <code data-dev-comment-type="paramref" class="paramref">minValue</code> equals <code data-dev-comment-type="paramref" class="paramref">maxValue</code>,
<code data-dev-comment-type="paramref" class="paramref">minValue</code> is returned.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextSingle_Random_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextSingle(Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L379">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextSingle_" data-uid="X10D.Core.RandomExtensions.NextSingle*"></a>
<h4 id="X10D_Core_RandomExtensions_NextSingle_Random_" data-uid="X10D.Core.RandomExtensions.NextSingle(Random)">NextSingle(Random)</h4>
<div class="markdown level1 summary"><p>Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static float NextSingle(this Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Single</span></td>
<td><p>A single-precision floating point number that is greater than or equal to 0.0, and less than 1.0.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextSingle_Random_System_Single_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextSingle(Random%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L403">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextSingle_" data-uid="X10D.Core.RandomExtensions.NextSingle*"></a>
<h4 id="X10D_Core_RandomExtensions_NextSingle_Random_System_Single_" data-uid="X10D.Core.RandomExtensions.NextSingle(Random,System.Single)">NextSingle(Random, Single)</h4>
<div class="markdown level1 summary"><p>Returns a non-negative random single-precision floating point number that is less than the specified maximum.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static float NextSingle(this Random random, float maxValue)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Single</span></td>
<td><span class="parametername">maxValue</span></td>
<td><p>The exclusive upper bound of the random number returned. This value must be greater than or equal to 0.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Single</span></td>
<td><p>A random single-precision floating point number that is greater than or equal to 0, and less than
<code data-dev-comment-type="paramref" class="paramref">maxValue</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextSingle_Random_System_Single_System_Single_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextSingle(Random%2CSystem.Single%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L435">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextSingle_" data-uid="X10D.Core.RandomExtensions.NextSingle*"></a>
<h4 id="X10D_Core_RandomExtensions_NextSingle_Random_System_Single_System_Single_" data-uid="X10D.Core.RandomExtensions.NextSingle(Random,System.Single,System.Single)">NextSingle(Random, Single, Single)</h4>
<div class="markdown level1 summary"><p>Returns a random single-precision floating point number that is within a specified range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static float NextSingle(this Random random, float minValue, float maxValue)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Single</span></td>
<td><span class="parametername">minValue</span></td>
<td><p>The inclusive lower bound of the random number returned.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Single</span></td>
<td><span class="parametername">maxValue</span></td>
<td><p>The exclusive upper bound of the random number returned. This value must be greater than or equal to
<code data-dev-comment-type="paramref" class="paramref">minValue</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Single</span></td>
<td><p>A random single-precision floating point number between <code data-dev-comment-type="paramref" class="paramref">minValue</code> and
<code data-dev-comment-type="paramref" class="paramref">maxValue</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Core_RandomExtensions_NextString_Random_IReadOnlyList_System_Char__System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Core.RandomExtensions.NextString(Random%2CIReadOnlyList%7BSystem.Char%7D%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/RandomExtensions.cs/#L466">View Source</a>
</span>
<a id="X10D_Core_RandomExtensions_NextString_" data-uid="X10D.Core.RandomExtensions.NextString*"></a>
<h4 id="X10D_Core_RandomExtensions_NextString_Random_IReadOnlyList_System_Char__System_Int32_" data-uid="X10D.Core.RandomExtensions.NextString(Random,IReadOnlyList{System.Char},System.Int32)">NextString(Random, IReadOnlyList&lt;Char&gt;, Int32)</h4>
<div class="markdown level1 summary"><p>Returns a new string of a specified length which is composed of specified characters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string NextString(this Random random, IReadOnlyList&lt;char&gt; source, int length)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</p>
</td>
</tr>
<tr>
<td><span class="xref">IReadOnlyList</span>&lt;<span class="xref">System.Char</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source collection of characters to poll.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">length</span></td>
<td><p>The length of the new string to generate.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>A <see cref="!:System.String"></see> whose length is equal to that of <code data-dev-comment-type="paramref" class="paramref">length</code>, composed of characters
specified by the characters in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
</article>
</div>
<div class="copyright-footer">
<span>&#169; Singulink. All rights reserved.</span>
</div>
</main>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js"></script>
<script type="text/javascript" src="../styles/jquery.twbsPagination.js"></script>
<script type="text/javascript" src="../styles/url.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/anchor-js/anchor.min.js"></script>
<script type="text/javascript" src="../styles/docfx.js"></script>
<script type="text/javascript" src="../styles/singulink.js"></script>
<script type="text/javascript" src="../styles/main.js"></script> </body>
</html>