Skip to content
Snippets Groups Projects
Commit e299afd3 authored by horstmannmat's avatar horstmannmat
Browse files

sorteia e tempo

parent c46888b1
No related branches found
No related tags found
No related merge requests found
...@@ -151,3 +151,13 @@ void QuickSort_it (int *vet, int N) ...@@ -151,3 +151,13 @@ void QuickSort_it (int *vet, int N)
} }
} }
} }
int sorteia(int um,int outro)
{
int r;
srand(time(NULL));
r=um+(rand()%outro);
return r;
}
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
int pesqseq (int *, int , int ); int pesqseq (int *, int , int );
int pesqbin (int *, int , int ); int pesqbin (int *, int , int );
void menor (int *, int *, int ); void menor (int *, int *, int );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment