Balatro's mind-bending code uses mouse jitter for random number generation, along with a bunch of clever maths I'm too dense to fully appreciate

Wait 5 sec.

Bear with me, I'm going out on a limb here.