// random number generator; generates random permutations #include #include #include #define Size 10 template bool SSearch(T a[], const T& x, int n) {// Search the unordered list a[0:n-1] for x. // Return true if found; return false otherwise. int i; for (i = 0; i < n && a[i] != x; i++); if (i == n) return false; return true; } void main(void) { int a[Size], i, tempNext; bool found = true; cout << "if you want longer permutatations, change Size (at top)" << endl; cout << "the next random number is diffrent from previous ones" << endl; cout << endl; randomize(); for(i=0; i