Text-based dice rolling game in C++
using namespace std; is considered a bad practice.



Don't do this:


int gameRunning = true;



If you want to use a boolean variable, use a bool instead of int.



You can use boolean values directly in conditions,
no need to compare them to true / false.
So instead of this:


while (gameRunning == true)



You can write simply:

while (gameRunning)




Still about that while loop earlier,
since gameRunning is initialized to true,
the loop condition will be inevitable true for the first time.
That's kind of a waste to re-evaluate.
In situations like this,
considering rewriting it as a do { ... } while (...) loop.