How to compare random number with a random branch instructions jump? For example now i got: mov r2,#0x1e sub BL_xxxxxxxx (untity3d RandomRange function) cmp r0,#0x14 BHI #0xc mov r1,#2 This will be very easy to compare random number between 20 and 30, but how can i compare if there's a in game option? (e.g. there's a option can set in-game sound effect volume 5-10, i want compare this with 30) I tried many way but no luck: game crash, always max number/minimum number even dont work.. any help about this?