//
// randInt from 0x3d4c72 to 0x3d4cbc (74 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:43 +0000
//
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;
}