So I am trying to program a slot machine but the few problems I have encounters all lie in random number generation my main issue is how do I make truly random numbers between one and six appear on screen and how do I make the computer judge if their is three matchers?
I am not strictly looking for someone just to finish the program I simply want explanations to how I might achieve it.
int main()
{
int balance = 500;
int fine;
cout << "Welcome to Vegas high roller! Your starting balance is 500 dollars lets play! " << endl;
std::string start;
cout << "Type PLAY to spin !" <<endl;
std::cin >> start;
while (start == "PLAY"&& balance > 100){
cout << "balance:" << balance << endl;
cout <<"your numerals are" <<endl;
//here is where i wish to put random numbers
}
}