added 2 newview modes: c conc & a pressure
[physik/nlsop.git] / random.c
index 17cbd73..4d96243 100644 (file)
--- a/random.c
+++ b/random.c
@@ -9,6 +9,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
+#include <stdlib.h>
 
 #include "random.h"
 
@@ -62,7 +63,7 @@ u32 get_rand(u32 max)
   }
   c_ptr=b_ptr;
  }
+
  return((u32)(*(c_ptr++)*(max*1.0/((long long unsigned int)URAND_MAX+1))));
 }