some more stuff

This commit is contained in:
Joseph Redmon
2016-08-05 15:27:07 -07:00
parent 9361292c42
commit 845ab75796
26 changed files with 1589 additions and 156 deletions

View File

@ -521,6 +521,11 @@ int max_index(float *a, int n)
int rand_int(int min, int max)
{
if (max < min){
int s = min;
min = max;
max = s;
}
int r = (rand()%(max - min + 1)) + min;
return r;
}