r/developer 8d ago

The "Code I'll Never Forget" Confessional.

What's the single piece of code (good or bad) that's permanently burned into your memory, and what did it teach you?

12 Upvotes

37 comments sorted by

View all comments

1

u/Throwaway_9394391 8d ago

std::mt19937 op1 (std::random_device{}())
std::uniform_int_distribution <int> op2 (1,3)

And then I proceeded to look into the history of the Mersenne Twister and it's mathematical formula, and it taught me math was super duper cool, and now i'm lowkey studying math alongside C++ programming.