//
// randInt from 0x6a9f08 to 0x6a9f64 (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x86428
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:50:47 +0000
//
__int64 __fastcall randInt(int a1, int a2)
{
__int64 result; // x0
LODWORD(result) = (int)(float)(floorf((float)((float)rand() * 4.6566e-10) * (float)(a2 + 1 - a1)) + (float)a1);
if ( (int)result > a2 )
return (unsigned int)a2;
else
return (unsigned int)result;
}