3 writes to _impl
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Random.cs (3)
33
_impl
= GetType() == typeof(Random) ? new XoshiroImpl() : new Net5CompatDerivedImpl(this);
44
_impl
= GetType() == typeof(Random) ? new Net5CompatSeedImpl(Seed) : new Net5CompatDerivedImpl(this, Seed);
51
_impl
= null!; // base implementation isn't used at all
11 references to _impl
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Random.cs (11)
61
int result =
_impl
.Next();
77
int result =
_impl
.Next(maxValue);
97
int result =
_impl
.Next(minValue, maxValue);
106
long result =
_impl
.NextInt64();
122
long result =
_impl
.NextInt64(maxValue);
142
long result =
_impl
.NextInt64(minValue, maxValue);
151
float result =
_impl
.NextSingle();
160
double result =
_impl
.NextDouble();
175
_impl
.NextBytes(buffer);
180
public virtual void NextBytes(Span<byte> buffer) =>
_impl
.NextBytes(buffer);
332
double result =
_impl
.Sample();