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,b=2;
- int main()
- {
- cout << "Hello world!" << endl;
- srand(time(NULL));
- cout << a+rand()%(b-a+1);
- //Są słobo losowe, wydaje mi sie ze przy tak małych liczbach cięzko o losowość, ponieważ program średnio uruchamiam co sekunde i przez to miałem ciągle jednakowy wynik
- return 0;
- }
Add Comment
Please, Sign In to add comment