MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / InteractiveRandomRange

Function InteractiveRandomRange

src/core/random_func.hpp:98–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98inline uint32_t InteractiveRandomRange(uint32_t limit)
99{
100 return _interactive_random.Next(limit);
101}
102
103/**
104 * Checks if a given randomize-number is below a given probability.

Callers 3

DoPlantForestMethod · 0.85
OnPlaceObjectMethod · 0.85
SendFrameMethod · 0.85

Calls 1

NextMethod · 0.45

Tested by

no test coverage detected