MCPcopy 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
990int TriRandInt( int hi )
991{
992 jran <<= 12;
993 jran += 150889;
994 jran %= 714025;
995 return ( hi * jran ) / 714025;
996};
997
998int TriRandInt( int lo, int hi )
999{

Callers 14

TriPerlinCurveMethod · 0.85
GenerateStarFunction · 0.85
RemoveSwarmerMethod · 0.85
SetCountMethod · 0.85
PickFiringOriginMethod · 0.85
GetRandomPlacementMethod · 0.85
ResetMethod · 0.85
CalculateBehaviorMethod · 0.85
DroneAgentMethod · 0.85
CalculateBehaviorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected