Changeset 92 for ttyvaders


Ignore:
Timestamp:
Nov 9, 2003, 2:51:37 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • libee/math.c: fixed a thinko in ee_rand().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk/libee/math.c

    r90 r92  
    2929int ee_rand(int min, int max)
    3030{
    31     return min + (int)((1.0*(max-min)) * rand() / (RAND_MAX+1.0));
     31    return min + (int)((1.0*(max-min+1)) * rand() / (RAND_MAX+1.0));
    3232}
    3333
Note: See TracChangeset for help on using the changeset viewer.