Changeset 1840 for code/trunk/src/util
- Timestamp:
- Sep 27, 2008, 10:04:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/util/Math.h
r1823 r1840 220 220 inline _UtilExport float rnd() 221 221 { 222 return ((float)rand() / (RAND_MAX + 1));222 return rand() / (RAND_MAX + 1.0); 223 223 } 224 224
Note: See TracChangeset
for help on using the changeset viewer.