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); 186int k = Stats.SampleFromBinomial(_rnd, _cache.Length, 1.0 / _numSampled); 190int ind = _rnd.Next(_reservoir.Length); 207var next = _rnd.Next(_reservoir.Length); 235_reservoir[i] = _rnd.Next((int)_numSampled);