Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/carbonengine/trinity
/ TriRandInt
Function
TriRandInt
trinity/TriMath.cpp:990–996 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
988
};
989
990
int TriRandInt( int hi )
991
{
992
jran <<= 12;
993
jran += 150889;
994
jran %= 714025;
995
return ( hi * jran ) / 714025;
996
};
997
998
int TriRandInt( int lo, int hi )
999
{
Callers
14
Tr2VolumetricsRenderer
Method · 0.85
TriPerlinCurve
Method · 0.85
GenerateStar
Function · 0.85
RemoveSwarmer
Method · 0.85
SetCount
Method · 0.85
PickFiringOrigin
Method · 0.85
GetRandomPlacement
Method · 0.85
Reset
Method · 0.85
GetSmartRandomLocatorIndex
Method · 0.85
CalculateBehavior
Method · 0.85
DroneAgent
Method · 0.85
CalculateBehavior
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected