MCPcopy Create free account
hub / github.com/Tencent/embedx / Next

Method Next

src/sampler/sampling/uniform_sampling.cc:46–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46int_t UniformSampling::Next() const noexcept { return Next(0, table_size_); }
47
48int_t UniformSampling::Next(int begin, int end) const noexcept {
49 return (int_t)(ThreadLocalRandom() * (end - begin)) + begin;

Callers

nothing calls this directly

Calls 1

ThreadLocalRandomFunction · 0.85

Tested by

no test coverage detected