1 override of Next
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
401public override int Next(int minValue, int maxValue)
26 references to Next
BlazorServerApp (1)
Data\WeatherForecastService.cs (1)
18TemperatureC = Random.Shared.Next(-20, 55),
BlazorUnitedApp (1)
Data\WeatherForecastService.cs (1)
18TemperatureC = Random.Shared.Next(-20, 55),
HostedBlazorWebassemblyApp.Server (1)
Data\WeatherForecastService.cs (1)
24TemperatureC = Random.Shared.Next(-20, 55),
HttpStress (3)
Program.cs (3)
653int offset = _random.Next(0, input.Length); 654int length = _random.Next(0, input.Length - offset + 1); 659versions[_random.Next(0, versions.Length)];
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
159var port = Random.Shared.Next(_minPort, _maxPort);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
159var port = Random.Shared.Next(_minPort, _maxPort);
JwtClientSample (1)
Program.cs (1)
72nextMsgAt = Random.Shared.Next(2, 5);
Microsoft.AspNetCore.InternalTesting.Tests (1)
HttpClientSlimTest.cs (1)
85address = $"http://localhost:{random.Next(1024, ushort.MaxValue)}/";
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (3)
EndToEndBenchmarks.cs (3)
83var bytes = Math.Min(rand.Next(4, 1024), value.Length); 96var bytes = Math.Min(rand.Next(4, 1024), value.Length); 111var bytes = Math.Min(rand.Next(4, 1024), value.Length);
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
98var secondsWithJitter = 300 + Random.Shared.Next(-30, 30);
Microsoft.AspNetCore.Routing.Tests (1)
RouteCollectionTest.cs (1)
508int index = Random.Shared.Next(0, routeNames.Length - 1);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerTests.cs (2)
997? Random.Shared.Next(IPEndPoint.MinPort, IPEndPoint.MaxPort) 1049? Random.Shared.Next(IPEndPoint.MinPort, IPEndPoint.MaxPort)
Microsoft.AspNetCore.SignalR.Tests (1)
Internal\MessageBufferTests.cs (1)
254var ackNum = Random.Shared.Next(0, 1000);
Microsoft.DotNet.Helix.Sdk (1)
AzureDevOpsTask.cs (1)
179return s_rand.Next(min, max);
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentStack.cs (1)
631backoff = Random.Shared.Next(1, BACKOFF_MAX_YIELDS);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Random.cs (3)
291/// This method uses <see cref="Next(int, int)" /> to choose values for shuffling. 308/// This method uses <see cref="Next(int, int)" /> to choose values for shuffling. 317int j = Next(i, n);
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Sample.cs (1)
180return (char)random.Next((int)range.Item1, (int)range.Item2 + 1);
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\TaskReplicator.cs (1)
167return 100 + Random.Shared.Next(0, 50 * Environment.ProcessorCount);
Wasm.Performance.TestApp (1)
Person.cs (1)
27.ToDictionary(c => c, _ => rng.Next(0, 2) == 0),