jeudi 19 novembre 2020

Is it possible to approach true randomness in c++?

Hello everyone I'm making a quiz game in c++ to learn new languages. There is an array of struct called Word with the word and its definition. I want the program to do this:

what's the definition of "word"?
1."definition 1"
2."definition 2 (answer)"
3."definition 3"

but instead, it does that:

what's the definition of "word"?
1."definition 1"
2."definition 2 (answer)"
3."definition 1"

edit: I've already set the seed to time(NULL)

Is it impossible to fix because we can't do true randomness? If it isn't how to fix it??
thanks in advance




Aucun commentaire:

Enregistrer un commentaire