Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
98
inline 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
DoPlantForest
Method · 0.85
OnPlaceObject
Method · 0.85
SendFrame
Method · 0.85
Calls
1
Next
Method · 0.45
Tested by
no test coverage detected