0
Is rand function random at all?
For example, If i make a game with a rand function in it. Does it make same output evertime the game resets or it will change?
4 ответов
+ 3
PG Dominator it changes in c++
https://code.sololearn.com/cuMON3b8t1Kz/?ref=app
+ 3
PG Dominator don't try to understand the logic just see that it is generating random number without repeating.
+ 2
Because you have not provided a time variable try using Rand() and stand() functions.
+ 1
I know that it will not change in a c++ program my question is for games and game engines