Search:

Type: Posts; User: Khabz

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    6,544

    I made one myself and it worked out for 2 numbers...

    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));
  2. Replies
    8
    Views
    6,544

    It took me a while to figure out your definition...

    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)...
Results 1 to 2 of 2