//
// randInt from 0x2f0a0e to 0x2f0a58 (74 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall randInt(int a1, int a2)
{
unsigned int v4; // r0
int result; // r0
v4 = rand();
result = (int)(float)(floorf(vcvts_n_f32_s32(v4, 0x1Fu) * (float)(a2 + 1 - a1)) + (float)a1);
if ( result >= a2 )
return a2;
return result;
}