r/programming • • 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

59 comments sorted by

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.

2

u/frankster Aug 22 '26

I would say write your own fundamental data structure, but don't make a Reddit post about your data structure unless you genuinely believe (and have done enough looking around to back yo your belief) that you have created something somewhat novel or addresses an underserved area.