Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int main()
- {
- int a=0;//orzeł
- int b=1;//reszka
- srand(time(NULL));
- cout<<a+rand()%(b-a+1)<<endl;
- //Wyglada na to, że wyniki sa losowe po wielu probach uruchomienia programu.
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement