Balatro's mind-bending code uses mouse jitter for random number generation, along with a bunch of clever maths…
A deep dive into the source code of the roguelike deckbuilder Balatro reveals clever mathematical tricks and unconventional methods for random number generation, including the use of mouse sensor jitter. While some aspects of the code are described as 'horrible' or 'bad practices,' the overall implementation is praised for its ingenuity.
PC Gamer
Original source
This article was reported and published by PC Gamer. feed.gg links to it as part of a story cluster — full text, images and rights remain with the publisher.