berwil
-
Using almost always auto
Something I never thought I’d use when I first learned about it is the keyword auto. It was first introduced in C++11 and has been a hot topic for a few years now. Briefly, if you haven’t heard of it, auto is a keyword that lets the compiler decide a variable’s type. Usually, what happens… Continue reading
-
Random numbers

A few years ago, I was reading through some code handed to us by the amazing university lecturer Fredrik Lindahl, and there was one line that caught my attention. It was, to me, a totally new way to generate random numbers that were actually somewhat random: Mersenne Twister! What I had heard before, and many… Continue reading