3 writes to _impl
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (3)
35
_impl
= GetType() == typeof(Random) ? new XoshiroImpl() : new CompatDerivedImpl(this);
46
_impl
= GetType() == typeof(Random) ? new CompatSeedImpl(Seed) : new CompatDerivedImpl(this, Seed);
53
_impl
= null!; // base implementation isn't used at all
12 references to _impl
System.Private.CoreLib (12)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (12)
63
int result =
_impl
.Next();
79
int result =
_impl
.Next(maxValue);
99
int result =
_impl
.Next(minValue, maxValue);
108
long result =
_impl
.NextInt64();
124
long result =
_impl
.NextInt64(maxValue);
144
long result =
_impl
.NextInt64(minValue, maxValue);
153
float result =
_impl
.NextSingle();
162
double result =
_impl
.NextDouble();
177
_impl
.NextBytes(buffer);
182
public virtual void NextBytes(Span<byte> buffer) =>
_impl
.NextBytes(buffer);
495
ImplBase impl =
_impl
;
719
double result =
_impl
.Sample();