Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenTTD/OpenTTD
/ InteractiveRandom
Function
InteractiveRandom
src/core/random_func.hpp:93–96 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
91
}
92
93
inline uint32_t InteractiveRandom()
94
{
95
return _interactive_random.Next();
96
}
97
98
inline uint32_t InteractiveRandomRange(uint32_t limit)
99
{
Callers
10
openttd_main
Function · 0.85
OnClick
Method · 0.85
OnPlaceObject
Method · 0.85
_ShowGenerateLandscape
Function · 0.85
GenerateWorld
Function · 0.85
PlaceTreeGroupAroundTile
Function · 0.85
Shuffle
Method · 0.85
PlaylistAdd
Method · 0.85
RandomBytesWithFallback
Function · 0.85
Tick
Method · 0.85
Calls
1
Next
Method · 0.45
Tested by
no test coverage detected