#include #include //for the seedrnd() function #include #define SIZE 10000 //size of the array void sort(int *array,int size); int rnd(int range); void seedrnd(void); void main() { int r[SIZE]; int i; printf("Here is the array unsorted:\n"); seedrnd(); //seed the randomizer for(i=0;i array[b]) { temp=array[b]; array[b] = array[a]; array[a] = temp; } } int rnd(int range) { int r; r=rand()%range; //spit up random num. return(r); } /* Seed the randomizer */ void seedrnd(void) { srand((unsigned)time(NULL)); }