[ create a new paste ] login | about

Link: http://codepad.org/hR2YITus    [ raw code | output | fork ]

C++, pasted on Jun 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
 
int main()
{
  
    char mast[4] = {'s', 'd', 'c', 'h'};
    for(int i = 0; i < 4; i++){
    int i = rand() % 4;
    cout << mast[i];
    }
    return 0;
}


Output:
1
hcdh


Create a new paste based on this one


Comments: