Well, the thing is that I dont understand the random number coding. How to use it.
using namespace std;
int get_random(int x)
Let me give the steps to follow assuming that the random function that you have written gives some random number for each call.
You need to call this 3 time for one roll. (Use a loop here)
It is given in the PDF that each player is given 3 chances (nest the above loop inside another loop that loops 3 times).
In the second loop you get the random number 3 times. And check for the condition for scores.
Sum all the individual scores.