1 write to _rnd
Microsoft.ML.Core (1)
Utilities\ReservoirSampler.cs (1)
155
_rnd
= rnd;
5 references to _rnd
Microsoft.ML.Core (5)
Utilities\ReservoirSampler.cs (5)
178
_reservoir[i] =
_rnd
.Next(_cache.Length);
186
int k = Stats.SampleFromBinomial(
_rnd
, _cache.Length, 1.0 / _numSampled);
190
int ind =
_rnd
.Next(_reservoir.Length);
207
var next =
_rnd
.Next(_reservoir.Length);
235
_reservoir[i] =
_rnd
.Next((int)_numSampled);