| <!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 |
| | Apache Lucene.NET 4.8.0-beta00009 Documentation </title> |
| <meta name="viewport" content="width=device-width"> |
| <meta name="title" content="Class RandomExtensions |
| | Apache Lucene.NET 4.8.0-beta00009 Documentation "> |
| <meta name="generator" content="docfx 2.56.0.0"> |
| |
| <link rel="shortcut icon" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/favicon.ico"> |
| <link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.css"> |
| <link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.css"> |
| <link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.css"> |
| <meta property="docfx:navrel" content="toc.html"> |
| <meta property="docfx:tocrel" content="test-framework/toc.html"> |
| |
| <meta property="docfx:rel" content="https://lucenenet.apache.org/docs/4.8.0-beta00009/"> |
| |
| </head> |
| <body data-spy="scroll" data-target="#affix" data-offset="120"> |
| <div id="wrapper"> |
| <header> |
| |
| <nav id="autocollapse" class="navbar ng-scope" role="navigation"> |
| <div class="container"> |
| <div class="navbar-header"> |
| <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar"> |
| <span class="sr-only">Toggle navigation</span> |
| <span class="icon-bar"></span> |
| <span class="icon-bar"></span> |
| <span class="icon-bar"></span> |
| </button> |
| |
| <a class="navbar-brand" href="/"> |
| <img id="logo" class="svg" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/lucene-net-color.png" alt=""> |
| </a> |
| </div> |
| <div class="collapse navbar-collapse" id="navbar"> |
| <form class="navbar-form navbar-right" role="search" id="search"> |
| <div class="form-group"> |
| <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off"> |
| </div> |
| </form> |
| </div> |
| </div> |
| </nav> |
| |
| <div class="subnav navbar navbar-default"> |
| <div class="container hide-when-search"> |
| <ul class="level0 breadcrumb"> |
| <li> |
| <a href="https://lucenenet.apache.org/docs/4.8.0-beta00009/">API</a> |
| <span id="breadcrumb"> |
| <ul class="breadcrumb"> |
| <li></li> |
| </ul> |
| </span> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </header> |
| <div class="container body-content"> |
| |
| <div id="search-results"> |
| <div class="search-list"></div> |
| <div class="sr-items"> |
| <p><i class="glyphicon glyphicon-refresh index-loading"></i></p> |
| </div> |
| <ul id="pagination"></ul> |
| </div> |
| </div> |
| <div role="main" class="container body-content hide-when-search"> |
| |
| <div class="sidenav hide-when-search"> |
| <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a> |
| <div class="sidetoggle collapse" id="sidetoggle"> |
| <div id="sidetoc"></div> |
| </div> |
| </div> |
| <div class="article row grid-right"> |
| <div class="col-md-10"> |
| <article class="content wrap" id="_content" data-uid="Lucene.Net.RandomExtensions"> |
| |
| |
| <h1 id="Lucene_Net_RandomExtensions" data-uid="Lucene.Net.RandomExtensions" class="text-break">Class RandomExtensions |
| </h1> |
| <div class="markdown level0 summary"><p>Extensions to <span class="xref">System.Random</span> in order to randomly generate |
| types and specially formatted strings that assist with testing |
| custom extensions to Lucene.Net.</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> |
| <div class="inheritedMembers"> |
| <h5>Inherited Members</h5> |
| <div> |
| <span class="xref">System.Object.Equals(System.Object)</span> |
| </div> |
| <div> |
| <span class="xref">System.Object.Equals(System.Object, System.Object)</span> |
| </div> |
| <div> |
| <span class="xref">System.Object.GetHashCode()</span> |
| </div> |
| <div> |
| <span class="xref">System.Object.GetType()</span> |
| </div> |
| <div> |
| <span class="xref">System.Object.MemberwiseClone()</span> |
| </div> |
| <div> |
| <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span> |
| </div> |
| <div> |
| <span class="xref">System.Object.ToString()</span> |
| </div> |
| </div> |
| <h6><strong>Namespace</strong>: <a class="xref" href="Lucene.Net.html">Lucene.Net</a></h6> |
| <h6><strong>Assembly</strong>: Lucene.Net.TestFramework.dll</h6> |
| <h5 id="Lucene_Net_RandomExtensions_syntax">Syntax</h5> |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public static class RandomExtensions</code></pre> |
| </div> |
| <h3 id="methods">Methods |
| </h3> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextAnalysisString_System_Random_System_Int32_System_Boolean_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextAnalysisString(System.Random%2CSystem.Int32%2CSystem.Boolean)%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L239">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextAnalysisString_" data-uid="Lucene.Net.RandomExtensions.NextAnalysisString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextAnalysisString_System_Random_System_Int32_System_Boolean_" data-uid="Lucene.Net.RandomExtensions.NextAnalysisString(System.Random,System.Int32,System.Boolean)">NextAnalysisString(Random, Int32, Boolean)</h4> |
| <div class="markdown level1 summary"></div> |
| <div class="markdown level1 conceptual"></div> |
| <h5 class="decalaration">Declaration</h5> |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public static string NextAnalysisString(this Random random, int maxLength, bool simple)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">maxLength</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Boolean</span></td> |
| <td><span class="parametername">simple</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextBoolean_System_Random_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextBoolean(System.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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L40">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextBoolean_" data-uid="Lucene.Net.RandomExtensions.NextBoolean*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextBoolean_System_Random_" data-uid="Lucene.Net.RandomExtensions.NextBoolean(System.Random)">NextBoolean(Random)</h4> |
| <div class="markdown level1 summary"><p>Generates a random <span class="xref">System.Boolean</span>, with a random distribution of |
| approximately 50/50.</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td><p>This <span class="xref">System.Random</span>.</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>A random <span class="xref">System.Boolean</span>.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextFilterStrategy_System_Random_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextFilterStrategy(System.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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L224">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextFilterStrategy_" data-uid="Lucene.Net.RandomExtensions.NextFilterStrategy*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextFilterStrategy_System_Random_" data-uid="Lucene.Net.RandomExtensions.NextFilterStrategy(System.Random)">NextFilterStrategy(Random)</h4> |
| <div class="markdown level1 summary"></div> |
| <div class="markdown level1 conceptual"></div> |
| <h5 class="decalaration">Declaration</h5> |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public static FilteredQuery.FilterStrategy NextFilterStrategy(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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></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">Lucene.Net.Search.FilteredQuery.FilterStrategy</span></td> |
| <td></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextFixedByteLengthUnicodeString_System_Random_System_Int32_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextFixedByteLengthUnicodeString(System.Random%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L209">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextFixedByteLengthUnicodeString_" data-uid="Lucene.Net.RandomExtensions.NextFixedByteLengthUnicodeString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextFixedByteLengthUnicodeString_System_Random_System_Int32_" data-uid="Lucene.Net.RandomExtensions.NextFixedByteLengthUnicodeString(System.Random,System.Int32)">NextFixedByteLengthUnicodeString(Random, Int32)</h4> |
| <div class="markdown level1 summary"><p>Returns random string, with a given UTF-8 byte <code data-dev-comment-type="paramref" class="paramref">length</code>. </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 NextFixedByteLengthUnicodeString(this Random random, 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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">length</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextFixedLengthUnicodeString_System_Random_System_Char___System_Int32_System_Int32_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextFixedLengthUnicodeString(System.Random%2CSystem.Char%5B%5D%2CSystem.Int32%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L143">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextFixedLengthUnicodeString_" data-uid="Lucene.Net.RandomExtensions.NextFixedLengthUnicodeString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextFixedLengthUnicodeString_System_Random_System_Char___System_Int32_System_Int32_" data-uid="Lucene.Net.RandomExtensions.NextFixedLengthUnicodeString(System.Random,System.Char[],System.Int32,System.Int32)">NextFixedLengthUnicodeString(Random, Char[], Int32, Int32)</h4> |
| <div class="markdown level1 summary"><p>Fills provided <span class="xref">char[]</span> with valid random unicode code |
| unit sequence.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| <h5 class="decalaration">Declaration</h5> |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public static void NextFixedLengthUnicodeString(this Random random, char[] chars, int offset, 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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Char</span>[]</td> |
| <td><span class="parametername">chars</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">offset</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">length</span></td> |
| <td></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextFrom__1_System_Random_System_Collections_Generic_ICollection___0__.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextFrom%60%601(System.Random%2CSystem.Collections.Generic.ICollection%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L86">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextFrom_" data-uid="Lucene.Net.RandomExtensions.NextFrom*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextFrom__1_System_Random_System_Collections_Generic_ICollection___0__" data-uid="Lucene.Net.RandomExtensions.NextFrom``1(System.Random,System.Collections.Generic.ICollection{``0})">NextFrom<T>(Random, ICollection<T>)</h4> |
| <div class="markdown level1 summary"><p>Pick a random object from the <code data-dev-comment-type="paramref" class="paramref">collection</code>.</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<T>(this Random random, ICollection<T> collection)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Collections.Generic.ICollection</span><T></td> |
| <td><span class="parametername">collection</span></td> |
| <td></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></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextHtmlishString_System_Random_System_Int32_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextHtmlishString(System.Random%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L173">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextHtmlishString_" data-uid="Lucene.Net.RandomExtensions.NextHtmlishString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextHtmlishString_System_Random_System_Int32_" data-uid="Lucene.Net.RandomExtensions.NextHtmlishString(System.Random,System.Int32)">NextHtmlishString(Random, Int32)</h4> |
| <div class="markdown level1 summary"><p>Returns a random HTML-like string.</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 NextHtmlishString(this Random random, int numElements)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">numElements</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextInt64_System_Random_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextInt64(System.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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L54">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextInt64_" data-uid="Lucene.Net.RandomExtensions.NextInt64*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextInt64_System_Random_" data-uid="Lucene.Net.RandomExtensions.NextInt64(System.Random)">NextInt64(Random)</h4> |
| <div class="markdown level1 summary"><p>Generates a random <span class="xref">System.Int64</span>.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| <h5 class="decalaration">Declaration</h5> |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public static long NextInt64(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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td><p>This <span class="xref">System.Random</span>.</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.Int64</span></td> |
| <td><p>A random <span class="xref">System.Int64</span>.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextInt64_System_Random_System_Int64_System_Int64_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextInt64(System.Random%2CSystem.Int64%2CSystem.Int64)%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L68">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextInt64_" data-uid="Lucene.Net.RandomExtensions.NextInt64*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextInt64_System_Random_System_Int64_System_Int64_" data-uid="Lucene.Net.RandomExtensions.NextInt64(System.Random,System.Int64,System.Int64)">NextInt64(Random, Int64, Int64)</h4> |
| <div class="markdown level1 summary"><p>Generates a random <span class="xref">System.Int64</span>. <code data-dev-comment-type="paramref" class="paramref">start</code> and <code data-dev-comment-type="paramref" class="paramref">end</code> are BOTH inclusive.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| <h5 class="decalaration">Declaration</h5> |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public static long NextInt64(this Random random, long start, long end)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td><p>This <span class="xref">System.Random</span>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int64</span></td> |
| <td><span class="parametername">start</span></td> |
| <td><p>The inclusive start.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int64</span></td> |
| <td><span class="parametername">end</span></td> |
| <td><p>The inclusive end.</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.Int64</span></td> |
| <td><p>A random <span class="xref">System.Int64</span>.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextRealisticUnicodeString_System_Random_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextRealisticUnicodeString(System.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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L188">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextRealisticUnicodeString_" data-uid="Lucene.Net.RandomExtensions.NextRealisticUnicodeString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextRealisticUnicodeString_System_Random_" data-uid="Lucene.Net.RandomExtensions.NextRealisticUnicodeString(System.Random)">NextRealisticUnicodeString(Random)</h4> |
| <div class="markdown level1 summary"><p>Returns random string of length between 0-20 codepoints, all codepoints within the same unicode block. </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 NextRealisticUnicodeString(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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextRealisticUnicodeString_System_Random_System_Int32_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextRealisticUnicodeString(System.Random%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L195">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextRealisticUnicodeString_" data-uid="Lucene.Net.RandomExtensions.NextRealisticUnicodeString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextRealisticUnicodeString_System_Random_System_Int32_" data-uid="Lucene.Net.RandomExtensions.NextRealisticUnicodeString(System.Random,System.Int32)">NextRealisticUnicodeString(Random, Int32)</h4> |
| <div class="markdown level1 summary"><p>Returns random string of length up to maxLength codepoints, all codepoints within the same unicode block. </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 NextRealisticUnicodeString(this Random random, int maxLength)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">maxLength</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextRealisticUnicodeString_System_Random_System_Int32_System_Int32_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextRealisticUnicodeString(System.Random%2CSystem.Int32%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L202">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextRealisticUnicodeString_" data-uid="Lucene.Net.RandomExtensions.NextRealisticUnicodeString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextRealisticUnicodeString_System_Random_System_Int32_System_Int32_" data-uid="Lucene.Net.RandomExtensions.NextRealisticUnicodeString(System.Random,System.Int32,System.Int32)">NextRealisticUnicodeString(Random, Int32, Int32)</h4> |
| <div class="markdown level1 summary"><p>Returns random string of length between min and max codepoints, all codepoints within the same unicode block. </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 NextRealisticUnicodeString(this Random random, int minLength, int maxLength)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">minLength</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">maxLength</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextRecasedString_System_Random_System_String_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextRecasedString(System.Random%2CSystem.String)%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L181">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextRecasedString_" data-uid="Lucene.Net.RandomExtensions.NextRecasedString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextRecasedString_System_Random_System_String_" data-uid="Lucene.Net.RandomExtensions.NextRecasedString(System.Random,System.String)">NextRecasedString(Random, String)</h4> |
| <div class="markdown level1 summary"><p>Randomly upcases, downcases, or leaves intact each code point in the given string.</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 NextRecasedString(this Random random, string str)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.String</span></td> |
| <td><span class="parametername">str</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextRegex_System_Random_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextRegex(System.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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L219">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextRegex_" data-uid="Lucene.Net.RandomExtensions.NextRegex*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextRegex_System_Random_" data-uid="Lucene.Net.RandomExtensions.NextRegex(System.Random)">NextRegex(Random)</h4> |
| <div class="markdown level1 summary"><p>Returns a valid (compiling) <span class="xref">System.Text.RegularExpressions.Regex</span> instance with random stuff inside. Be careful |
| when applying random patterns to longer strings as certain types of patterns |
| may explode into exponential times in backtracking implementations (such as Java's).</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| <h5 class="decalaration">Declaration</h5> |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public static Regex NextRegex(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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></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.Text.RegularExpressions.Regex</span></td> |
| <td></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextRegexishString_System_Random_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextRegexishString(System.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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L152">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextRegexishString_" data-uid="Lucene.Net.RandomExtensions.NextRegexishString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextRegexishString_System_Random_" data-uid="Lucene.Net.RandomExtensions.NextRegexishString(System.Random)">NextRegexishString(Random)</h4> |
| <div class="markdown level1 summary"><p>Returns a <span class="xref">System.String</span> thats "regexish" (contains lots of operators typically found in regular expressions) |
| If you call this enough times, you might get a valid regex!</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 NextRegexishString(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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextRegexishString_System_Random_System_Int32_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextRegexishString(System.Random%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L165">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextRegexishString_" data-uid="Lucene.Net.RandomExtensions.NextRegexishString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextRegexishString_System_Random_System_Int32_" data-uid="Lucene.Net.RandomExtensions.NextRegexishString(System.Random,System.Int32)">NextRegexishString(Random, Int32)</h4> |
| <div class="markdown level1 summary"><p>Returns a <span class="xref">System.String</span> thats "regexish" (contains lots of operators typically found in regular expressions) |
| If you call this enough times, you might get a valid regex!</p> |
| <p><p>Note: to avoid practically endless backtracking patterns we replace asterisk and plus |
| operators with bounded repetitions. See LUCENE-4111 for more info.</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 NextRegexishString(this Random random, int maxLength)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">maxLength</span></td> |
| <td><p>A hint about maximum length of the regexpish string. It may be exceeded by a few characters. </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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextSimpleString_System_Random_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextSimpleString(System.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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L119">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextSimpleString_" data-uid="Lucene.Net.RandomExtensions.NextSimpleString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextSimpleString_System_Random_" data-uid="Lucene.Net.RandomExtensions.NextSimpleString(System.Random)">NextSimpleString(Random)</h4> |
| <div class="markdown level1 summary"><p>Returns a random string consisting only of lowercase characters 'a' through 'z', |
| between 0 and 20 characters in length.</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 NextSimpleString(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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextSimpleString_System_Random_System_Int32_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextSimpleString(System.Random%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L94">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextSimpleString_" data-uid="Lucene.Net.RandomExtensions.NextSimpleString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextSimpleString_System_Random_System_Int32_" data-uid="Lucene.Net.RandomExtensions.NextSimpleString(System.Random,System.Int32)">NextSimpleString(Random, Int32)</h4> |
| <div class="markdown level1 summary"><p>Returns a random string consisting only of lowercase characters 'a' through 'z'.</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 NextSimpleString(this Random random, int maxLength)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">maxLength</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextSimpleString_System_Random_System_Int32_System_Int32_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextSimpleString(System.Random%2CSystem.Int32%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L102">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextSimpleString_" data-uid="Lucene.Net.RandomExtensions.NextSimpleString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextSimpleString_System_Random_System_Int32_System_Int32_" data-uid="Lucene.Net.RandomExtensions.NextSimpleString(System.Random,System.Int32,System.Int32)">NextSimpleString(Random, Int32, Int32)</h4> |
| <div class="markdown level1 summary"><p>Returns a random string consisting only of lowercase characters 'a' through 'z'.</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 NextSimpleString(this Random random, int minLength, int maxLength)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">minLength</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">maxLength</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextSimpleStringRange_System_Random_System_Char_System_Char_System_Int32_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextSimpleStringRange(System.Random%2CSystem.Char%2CSystem.Char%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L110">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextSimpleStringRange_" data-uid="Lucene.Net.RandomExtensions.NextSimpleStringRange*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextSimpleStringRange_System_Random_System_Char_System_Char_System_Int32_" data-uid="Lucene.Net.RandomExtensions.NextSimpleStringRange(System.Random,System.Char,System.Char,System.Int32)">NextSimpleStringRange(Random, Char, Char, Int32)</h4> |
| <div class="markdown level1 summary"><p>Returns a random string consisting only of characters between <code data-dev-comment-type="paramref" class="paramref">minChar</code> and <code data-dev-comment-type="paramref" class="paramref">maxChar</code>.</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 NextSimpleStringRange(this Random random, char minChar, char maxChar, int maxLength)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Char</span></td> |
| <td><span class="parametername">minChar</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Char</span></td> |
| <td><span class="parametername">maxChar</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">maxLength</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextSingle_System_Random_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextSingle(System.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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L78">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextSingle_" data-uid="Lucene.Net.RandomExtensions.NextSingle*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextSingle_System_Random_" data-uid="Lucene.Net.RandomExtensions.NextSingle(System.Random)">NextSingle(Random)</h4> |
| <div class="markdown level1 summary"><p>Generates a random <span class="xref">System.Single</span>.</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td><p>This <span class="xref">System.Random</span>.</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 <span class="xref">System.Single</span>.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextSubString_System_Random_System_Int32_System_Boolean_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextSubString(System.Random%2CSystem.Int32%2CSystem.Boolean)%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L244">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextSubString_" data-uid="Lucene.Net.RandomExtensions.NextSubString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextSubString_System_Random_System_Int32_System_Boolean_" data-uid="Lucene.Net.RandomExtensions.NextSubString(System.Random,System.Int32,System.Boolean)">NextSubString(Random, Int32, Boolean)</h4> |
| <div class="markdown level1 summary"></div> |
| <div class="markdown level1 conceptual"></div> |
| <h5 class="decalaration">Declaration</h5> |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public static string NextSubString(this Random random, int wordLength, bool simple)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">wordLength</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Boolean</span></td> |
| <td><span class="parametername">simple</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextUnicodeString_System_Random_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextUnicodeString(System.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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L126">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextUnicodeString_" data-uid="Lucene.Net.RandomExtensions.NextUnicodeString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextUnicodeString_System_Random_" data-uid="Lucene.Net.RandomExtensions.NextUnicodeString(System.Random)">NextUnicodeString(Random)</h4> |
| <div class="markdown level1 summary"><p>Returns random string, including full unicode 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 string NextUnicodeString(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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextUnicodeString_System_Random_System_Int32_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextUnicodeString(System.Random%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L134">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextUnicodeString_" data-uid="Lucene.Net.RandomExtensions.NextUnicodeString*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextUnicodeString_System_Random_System_Int32_" data-uid="Lucene.Net.RandomExtensions.NextUnicodeString(System.Random,System.Int32)">NextUnicodeString(Random, Int32)</h4> |
| <div class="markdown level1 summary"><p>Returns a random string up to a certain length.</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 NextUnicodeString(this Random random, int maxLength)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">maxLength</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <span class="small pull-right mobile-hide"> |
| <span class="divider">|</span> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions_NextWhitespace_System_Random_System_Int32_System_Int32_.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions.NextWhitespace(System.Random%2CSystem.Int32%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/Shazwazza/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L234">View Source</a> |
| </span> |
| <a id="Lucene_Net_RandomExtensions_NextWhitespace_" data-uid="Lucene.Net.RandomExtensions.NextWhitespace*"></a> |
| <h4 id="Lucene_Net_RandomExtensions_NextWhitespace_System_Random_System_Int32_System_Int32_" data-uid="Lucene.Net.RandomExtensions.NextWhitespace(System.Random,System.Int32,System.Int32)">NextWhitespace(Random, Int32, Int32)</h4> |
| <div class="markdown level1 summary"><p>Returns a random string in the specified length range consisting |
| entirely of whitespace 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 NextWhitespace(this Random random, int minLength, int maxLength)</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">System.Random</span></td> |
| <td><span class="parametername">random</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">minLength</span></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><span class="xref">System.Int32</span></td> |
| <td><span class="parametername">maxLength</span></td> |
| <td></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></td> |
| </tr> |
| </tbody> |
| </table> |
| <h5 id="Lucene_Net_RandomExtensions_NextWhitespace_System_Random_System_Int32_System_Int32__seealso">See Also</h5> |
| <div class="seealso"> |
| <div><a class="xref" href="Lucene.Net.Util.TestUtil.html#Lucene_Net_Util_TestUtil_WHITESPACE_CHARACTERS">WHITESPACE_CHARACTERS</a></div> |
| </div> |
| </article> |
| </div> |
| |
| <div class="hidden-sm col-md-2" role="complementary"> |
| <div class="sideaffix"> |
| <div class="contribution"> |
| <ul class="nav"> |
| <li> |
| <a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00009/websites/apidocs/apiSpec/new?filename=Lucene_Net_RandomExtensions.md&value=---%0Auid%3A%20Lucene.Net.RandomExtensions%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" class="contribution-link">Improve this Doc</a> |
| </li> |
| <li> |
| <a href="https://github.com/apache/lucenenet/blob/docs-poc/src/Lucene.Net.TestFramework/Support/RandomExtensions.cs/#L32" class="contribution-link">View Source</a> |
| </li> |
| </ul> |
| </div> |
| <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix"> |
| <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> --> |
| </nav> |
| </div> |
| </div> |
| </div> |
| </div> |
| |
| <footer> |
| <div class="grad-bottom"></div> |
| <div class="footer"> |
| <div class="container"> |
| <span class="pull-right"> |
| <a href="#top">Back to top</a> |
| </span> |
| Copyright © 2020 Licensed to the Apache Software Foundation (ASF) |
| |
| </div> |
| </div> |
| </footer> |
| </div> |
| |
| <script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.js"></script> |
| <script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.js"></script> |
| <script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.js"></script> |
| </body> |
| </html> |