VEndymionV

Untitled

Oct 10th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. //////////////////// Losowanie bez powtorzen ///////////////////////////////////
  2.         do
  3.         {
  4.             losowy_int = (rand() % 10001) - 1000;
  5.         } while (wylosowane_indeksy[losowy_int]);
  6.  
  7.         wylosowane_indeksy[losowy_int] = 1;
  8.  
  9. tab_s[i]->i = losowy_int; // tablica struktur
Advertisement
Add Comment
Please, Sign In to add comment