1 override of Next
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
392public override int Next(int maxValue)
36 references to Next
BlazorServerApp (1)
Data\WeatherForecastService.cs (1)
19Summary = Summaries[Random.Shared.Next(Summaries.Length)]
BlazorUnitedApp (1)
Data\WeatherForecastService.cs (1)
19Summary = Summaries[Random.Shared.Next(Summaries.Length)]
HostedBlazorWebassemblyApp.Server (1)
Data\WeatherForecastService.cs (1)
25Summary = Summaries[Random.Shared.Next(Summaries.Length)]
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
733var disconnectAfter = Random.Shared.Next(maxRequestSize);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
733var disconnectAfter = Random.Shared.Next(maxRequestSize);
ILCompiler.DependencyAnalysisFramework (1)
DependencyAnalyzer.cs (1)
72int index = _randomizer.Next(_nodes.Count);
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (2)
22var nextPortAttempt = 30000 + Random.Shared.Next(10000); 37nextPortAttempt = port + Random.Shared.Next(100);
Interop.FunctionalTests (2)
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (2)
22var nextPortAttempt = 30000 + Random.Shared.Next(10000); 37nextPortAttempt = port + Random.Shared.Next(100);
Microsoft.AspNetCore.InternalTesting.Tests (1)
QuarantinedTestAttributeTest.cs (1)
27Assert.True(new Random().Next(100) <= 80);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (2)
22var nextPortAttempt = 30000 + Random.Shared.Next(10000); 37nextPortAttempt = port + Random.Shared.Next(100);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (2)
22var nextPortAttempt = 30000 + Random.Shared.Next(10000); 37nextPortAttempt = port + Random.Shared.Next(100);
Microsoft.Build.Engine.UnitTests (1)
BuildEventArgsSerialization_Tests.cs (1)
471(AssemblyLoadingContext)(new Random().Next(Enum.GetNames(typeof(AssemblyLoadingContext)).Length));
Microsoft.Build.Framework.UnitTests (1)
AssemblyLoadBuildEventArgs_Tests.cs (1)
22(AssemblyLoadingContext)(new Random().Next(Enum.GetNames(typeof(AssemblyLoadingContext)).Length));
Microsoft.Extensions.Caching.MicroBenchmarks (1)
DistributedCacheBenchmarks.cs (1)
296private string RandomKey() => keys[random.Next(keys.Length)];
PresentationFramework (3)
System\Windows\Documents\FixedPageStructure.cs (3)
556prevTextPoint.Y = flowRunBox.Bottom - random.Next(15); 569flowRunBox.Inflate(random.Next(3), random.Next(3));
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
28ushort id = (ushort)Random.Shared.Next(ushort.MaxValue + 1);
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Random.cs (3)
190/// The method uses <see cref="Next(int)" /> to select items randomly from <paramref name="choices" /> 251/// The method uses <see cref="Next(int)" /> to select items randomly from <paramref name="choices" /> 272/// The method uses <see cref="Next(int)" /> to select items randomly from <paramref name="choices" />
src\libraries\System.Private.CoreLib\src\System\Random.Net5CompatImpl.cs (3)
197((ulong)(uint)_parent.Next(1 << 22)) | 198(((ulong)(uint)_parent.Next(1 << 22)) << 22) | 199(((ulong)(uint)_parent.Next(1 << 20)) << 44);
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\Regex.Cache.cs (2)
236int minListIndex = useRandom ? s_random.Next(s_cacheList.Count) : 0; 242int nextIndex = useRandom ? s_random.Next(s_cacheList.Count) : i;
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Sample.cs (1)
172static T Choose<T>(Random random, IList<T> elems) => elems[random.Next(elems.Count)];
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
61private static char GetRandomLetter() => LetterChars[Random.Shared.Next(LetterChars.Length - 1)];
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
61private static char GetRandomLetter() => LetterChars[Random.Shared.Next(LetterChars.Length - 1)];
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
61private static char GetRandomLetter() => LetterChars[Random.Shared.Next(LetterChars.Length - 1)];
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
61private static char GetRandomLetter() => LetterChars[Random.Shared.Next(LetterChars.Length - 1)];
Templates.Tests (1)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
61private static char GetRandomLetter() => LetterChars[Random.Shared.Next(LetterChars.Length - 1)];