Message from C, C++ talks

June 2019

— Thank you

— If you want to do that, explicitly cast it

— Questions we'll answer, but we won't tutor someone (hold his hand)

— You code has undefined behaviour



If any argument is
not the correct type for the corresponding conversion specification, the behavior is
undefined. (page 427)

took from here:

— Hey mmihov, I modified the code like this but the problem is everytime I run I get same string.

— You didn't seed rand()

— How to do that?

— Well using srand() would work

— Or just do it properly

— Okay I searched on www

— Yeah I got first results like this

— Which would mean using a random device as entropy to a mt19937 and then putting that in a uniform distribution

Message permanent page

— This is probably how you should be doing it, if using C++

— Hey I have a doubt can I PM you?