Practicing for random stuff in c++