Strategy:
I have 4 characters to buy marbles with - Daleven, Elvani, Talira, Alamiz
Fifth digits on each character: 1, 2, 3, 4, 5, 6, 7, 8, 9, 0
Fourth digits: Daleven all 4's, Elvani 1's, Talira: 3's, Alamiz: 5's (Used DALE - D is 4th letter in alphabet, A 1st, L 12th, 1+2=3, E is 5th)
Digits 1-3 on each character: 472 (chosen by in-game /random)
Results:
Daleven 47241 47242 47243 47244 47245 47246 47247 47248 47249 47240 | Elvani 47211 47212 47213 47214 47215 47216 47217 47218 47219 47210 | Talira 47231 47232 47233 47234 47235 47236 47237 47238 47239 47230 | Alamiz 47251 47252 47253 47254 47255 47256 47257 47258 47259 47250 |
Resulting odds:
Rank 5: 100% of 1 win on each character
Rank 4: 40%
Rank 3: 10% chance *if* 4th digit matched, so 0.4*0.1=4% chance
Rank 2: 10% chance *if* 3rd digit matched, so 0.04*0.1=0.4% chance
Rank 1: 10% chance *if* 2nd digit matched, so 0.004*0.1=0.04% chance
Obviously no way to get great odds of rank 1 with 40 marbles, but it's better than randoms, which would give you a 40/99999 chance, which is ~0.004%
Yeah, I'm bored at work