소스 검색

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

tags/v0.99.beta14
Sam Hocevar sam 21 년 전
부모
커밋
179c30a504
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      libee/math.c

+ 1
- 1
libee/math.c 파일 보기

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

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)


불러오는 중...
취소
저장