Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include <time.h>
- using namespace std;
- int main()
- {
- int tab [10][2];
- srand((unsigned)time(NULL));
- for (int i=0; i<10; i++)
- {
- for (int j=0; j<2; j++)
- {
- tab [i][j]=rand()%2;
- cout<<" "<<tab[i][j];
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement