I was trying the generate random numbers using mt19937 in c++ as shown in the code but I encounterd some weired behaviour.
mt19937
#include