Az ötöslottó nyerőszámainak kitalálása!
-
#124
nemfog lefordulni, de good copy :D
btw így:
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(){
vector<int> v;
for(int i=1; i<91; i++){
v.push_back(i);
}
random_shuffle(v.begin(), v.end());
for(int j=0; j<5; j++){
printf("%d ", v[j]);
}
printf("\n");
return 0;
}