The scripting command JumpRnd has the opcode (0x17).
- Byte - Max random value
- Byte - Comparison value
- Line Number (byte) - destination line number if comparison is true
Generates a random number between 1 and the first argument (Max), and jumps to destination if it matches the second argument (Comparison)
For example, used in the Cupie doll games outside Xeen's castle to give a percentage chance of winning the doll.