Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int a=1;
- int main()
- {
- srand(time(NULL));
- for(int i=1;i<=20;i++)
- {
- cout << rand()%(a+1);
- }
- return 0;
- }
- //Tak, uzyskane wyniki wygl¹daj¹ na losowe. Szansa na otrzymanie takiej samej kombinacji jest praktycznie zerowa
Add Comment
Please, Sign In to add comment