MCPcopy Create free account
hub / github.com/catboost/catboost / GenRandReal4

Method GenRandReal4

util/random/common_ops.h:114–116  ·  view source on GitHub ↗

generates a random number on [0, 1) with 53-bit resolution */

Source from the content-addressed store, hash-verified

112
113 /* generates a random number on [0, 1) with 53-bit resolution */
114 inline double GenRandReal4() noexcept {
115 return ::NPrivate::ToRandReal4(Engine().GenRand64());
116 }
117
118 // compatibility stuff
119 inline TResult operator()() noexcept {

Callers 4

TExamplesHolderMethod · 0.80
Y_UNIT_TESTFunction · 0.80
RandomNumber<double>Function · 0.80

Calls 3

ToRandReal4Function · 0.85
EngineEnum · 0.85
GenRand64Method · 0.80

Tested by 1

Y_UNIT_TESTFunction · 0.64