aboutsummaryrefslogtreecommitdiff
path: root/src/utility.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utility.h')
-rw-r--r--src/utility.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/utility.h b/src/utility.h
index 255b75c08..c741ab047 100644
--- a/src/utility.h
+++ b/src/utility.h
@@ -1230,20 +1230,7 @@ int myrand(void);
void mysrand(unsigned seed);
#define MYRAND_MAX 32767
-inline int myrand_range(int min, int max)
-{
- if(max-min > MYRAND_MAX)
- {
- dstream<<"WARNING: myrand_range: max-min > MYRAND_MAX"<<std::endl;
- assert(0);
- }
- if(min > max)
- {
- assert(0);
- return max;
- }
- return (myrand()%(max-min+1))+min;
-}
+int myrand_range(int min, int max);
/*
Miscellaneous functions