// // cocos2d::CCArray::randomObject from 0x180007150 to 0x1800071b4 (100 bytes) // // 3 xrefs: // > cocos2d::CCDictionary::randomObject @ 0x18000a95a // > @ 0x1801438a8 // > @ 0x1801ad9d8 // // 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 // struct cocos2d::CCObject *__fastcall cocos2d::CCArray::randomObject(cocos2d::CCArray *this) { float v3; // xmm1_4 if ( !this->data->num ) return nullptr; v3 = (float)rand() / 32767.0; if ( v3 == 1.0 ) v3 = 0.0; return this->data->arr[(float)((float)this->data->num * v3)]; }