16 references to new
Microsoft.Arcade.Common (1)
ExponentialRetry.cs (1)
13private Random _random = new Random();
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\RemoteJSDataStreamTest.cs (2)
52var random = new Random(); 80var random = new Random();
Microsoft.AspNetCore.InternalTesting.Tests (1)
QuarantinedTestAttributeTest.cs (1)
27Assert.True(new Random().Next(100) <= 80);
Microsoft.Build.Engine.UnitTests (2)
BuildEventArgsSerialization_Tests.cs (1)
471(AssemblyLoadingContext)(new Random().Next(Enum.GetNames(typeof(AssemblyLoadingContext)).Length));
Evaluation\Expander_Tests.cs (1)
1587xmlattribute.Value = "abc123" + new Random().Next();
Microsoft.Build.Framework (1)
StringUtils.cs (1)
25Random random = new();
Microsoft.Build.Framework.UnitTests (1)
AssemblyLoadBuildEventArgs_Tests.cs (1)
22(AssemblyLoadingContext)(new Random().Next(Enum.GetNames(typeof(AssemblyLoadingContext)).Length));
Microsoft.DotNet.Helix.Sdk (1)
AzureDevOpsTask.cs (1)
168private static readonly Random s_rand = new Random();
Microsoft.Extensions.Caching.Hybrid.Tests (3)
DistributedCacheTests.cs (3)
68new Random().NextBytes(expected); 114new Random().NextBytes(expected); 271var rand = new Random();
Microsoft.Extensions.Caching.MicroBenchmarks (1)
DistributedCacheBenchmarks.cs (1)
21private readonly Random random = new Random();
PresentationFramework (1)
System\Windows\Documents\FixedPageStructure.cs (1)
455Random random = new Random();
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Regex.Cache.cs (1)
57private static readonly Random s_random = new Random();
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Sample.cs (1)
38Random random = randomseed != 0 ? new Random(randomseed) : new Random();