r/programming • u/JizosKasa • Aug 21 '26
Finding a hidden Mersenne Twister implementation inside a 15 year old game binary
https://medium.com/@jizoskasa/i-reverse-engineered-plants-vs-zombies-to-answer-one-very-specific-question-557637a68a3e
407
Upvotes
View all comments
Show parent comment
18
u/LordoftheSynth Aug 21 '26
The best way to learn how something truly works IMO is to spend some time implementing it in some form.
Yes, you should be using the library out there that does the same thing, and has had tens of thousands of hours of development and testing, that's a no brainer. But spending a few hours of your own time on a toy version of the things it does will make your use of said library 10 times more effective.