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

Method NextShort

include/LightGBM/utils/random.h:41–43  ·  view source on GitHub ↗

! * \brief Generate random integer, int16 range. [0, 65536] * \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

39 * \return The random integer between [lower_bound, upper_bound)
40 */
41 inline int NextShort(int lower_bound, int upper_bound) {
42 return (RandInt16()) % (upper_bound - lower_bound) + lower_bound;
43 }
44
45 /*!
46 * \brief Generate random integer, int32 range

Callers 6

ShuffleModelsMethod · 0.45
SetMethod · 0.45
LoadFromBinFileMethod · 0.45
LoadTextDataToMemoryMethod · 0.45
FastFeatureBundlingFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected