產生小於n的k個數

「` include include include include using namespace std; void randomNumber(int* a,int k,int n){ int* temp = new int[n]; for(int i = 0 ; i < n ; ++i){ temp[i] = i; } for(int i = 0 ; i < k ; ++i){ swap(t
相關文章
相關標籤/搜索