1 override of Next
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
385public override int Next()
10 references to Next
HttpStress (1)
Program.cs (1)
66seed: cmdline.ValueForOption<int?>("-seed") ?? Random.Shared.Next());
KeyManagementSimulator (2)
Program.cs (2)
85seed = Random.Shared.Next(); 94var simulatorRandom = new Random(productRandom.Next());
Microsoft.AspNetCore.Identity.Specification.Tests (2)
UserManagerSpecificationTests.cs (2)
304var email = "foo" + Random.Shared.Next() + "@example.com"; 305var newEmail = "bar" + Random.Shared.Next() + "@example.com";
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiComponentService\OpenApiComponentService.ResponseSchemas.cs (1)
101static Todo? GetTodo() => Random.Shared.Next() < 0.5 ? new Todo(1, "Test Title", true, DateTime.Now) : null;
Microsoft.Build.Engine.UnitTests (1)
Evaluation\Expander_Tests.cs (1)
1587xmlattribute.Value = "abc123" + new Random().Next();
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
Foo.cs (1)
19LastRandom = Random.Shared.Next();
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Random.Net5CompatImpl.cs (2)
117public Net5CompatDerivedImpl(Random parent) : this(parent, Shared.Next()) { } 231buffer[i] = (byte)_parent.Next();