Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. int main(int argc, char *argv[]) {
  2. //=======================================================================================================================|
  3. srand(time(NULL));
  4. for (int x=1; x<=50; x++)
  5. {
  6. int liczba_wylosowana[50], poczatek_przedzialu, koniec_przedzialu;
  7.  
  8. poczatek_przedzialu = 1;
  9. koniec_przedzialu = 10;
  10.  
  11. liczba_wylosowana[x] = poczatek_przedzialu + rand() % (koniec_przedzialu - poczatek_przedzialu + 1);
  12. }
  13. //=======================================================================================================================|
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement