I made one myself and it worked out for 2 numbers like this.
#include <iostream>#include <ctime>
#include <cstdlib>
#include <string>
using namespace std;
int main()
{
srand(time(0));
Type: Posts; User: Khabz
I made one myself and it worked out for 2 numbers like this.
#include <iostream>#include <ctime>
#include <cstdlib>
#include <string>
using namespace std;
int main()
{
srand(time(0));
It took me a while to figure out your definition of 'slot machine' and therefore understand the problem. I'm guessing there's only 1 number that's correct (332) and you are supposed to (randomly)...