16 references to new
Microsoft.Arcade.Common (1)
ExponentialRetry.cs (1)
13
private Random _random = new
Random
();
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\RemoteJSDataStreamTest.cs (2)
52
var random = new
Random
();
80
var random = new
Random
();
Microsoft.AspNetCore.InternalTesting.Tests (1)
QuarantinedTestAttributeTest.cs (1)
27
Assert.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)
1587
xmlattribute.Value = "abc123" + new
Random
().Next();
Microsoft.Build.Framework (1)
StringUtils.cs (1)
25
Random 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)
168
private static readonly Random s_rand = new
Random
();
Microsoft.Extensions.Caching.Hybrid.Tests (3)
DistributedCacheTests.cs (3)
68
new
Random
().NextBytes(expected);
114
new
Random
().NextBytes(expected);
271
var rand = new
Random
();
Microsoft.Extensions.Caching.MicroBenchmarks (1)
DistributedCacheBenchmarks.cs (1)
21
private readonly Random random = new
Random
();
PresentationFramework (1)
System\Windows\Documents\FixedPageStructure.cs (1)
455
Random random = new
Random
();
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Regex.Cache.cs (1)
57
private static readonly Random s_random = new
Random
();
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Sample.cs (1)
38
Random random = randomseed != 0 ? new Random(randomseed) : new
Random
();