MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / NextInt

Method NextInt

include/LightGBM/utils/random.h:51–53  ·  view source on GitHub ↗

! * \brief Generate random integer, int32 range * \param lower_bound lower bound * \param upper_bound upper bound * \return The random integer between [lower_bound, upper_bound) */

Source from the content-addressed store, hash-verified

49 * \return The random integer between [lower_bound, upper_bound)
50 */
51 inline int NextInt(int lower_bound, int upper_bound) {
52 return (RandInt32()) % (upper_bound - lower_bound) + lower_bound;
53 }
54
55 /*!
56 * \brief Generate random float data

Callers 2

SampleFromFileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected