MCPcopy Create free account
hub / github.com/PyVRP/PyVRP / randint

Method randint

pyvrp/cpp/RandomNumberGenerator.h:95–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94template <typename T>
95RandomNumberGenerator::result_type RandomNumberGenerator::randint(T high)
96{
97 static_assert(std::is_integral<T>::value);
98 return operator()() % high;
99}
100
101template <typename RandomIt>
102void RandomNumberGenerator::shuffle(RandomIt first, RandomIt last)

Callers 3

test_randintFunction · 0.95
shuffleMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_randintFunction · 0.76