I'm sorry but you can't program "Luck"
Its all random number generation. nrand () type coding

My best finding is the gobs in valkrum train em up kill em wait 5 min repeat.

I went 1/52 on YYR so I understand the issue of where the heck is the item.
Also lost lot on RDM hat years ago to a lot of 3 figure that one out
0/2 on Joyuese
Or believe what I believe some days SE just says FU to you
If you keep trying for it in one push you'll burn out just take a break and go back.