Browse Source

* libee/math.c: fixed a thinko in ee_rand().

tags/v0.99.beta14
Sam Hocevar sam 21 years ago
parent
commit
179c30a504
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libee/math.c

+ 1
- 1
libee/math.c View File

@@ -28,7 +28,7 @@


int ee_rand(int min, int max) int ee_rand(int min, int max)
{ {
return min + (int)((1.0*(max-min)) * rand() / (RAND_MAX+1.0));
return min + (int)((1.0*(max-min+1)) * rand() / (RAND_MAX+1.0));
} }


int ee_sqrt(int a) int ee_sqrt(int a)


Loading…
Cancel
Save