In this rather basic C++ code snippet involving random number generation:
include using namespace std; int main() { cout << (rand() %
You need to "seed" the generator. Check out this short video, it will clear things up.
https://www.thenewboston.com/videos.php?cat=16&video=17503