diff options
Diffstat (limited to 'vec.h')
-rw-r--r-- | vec.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -215,7 +215,7 @@ public: // Get a random real number in range [0, 1]. inline T range01_scalar() { - return uni(mt); + return std::abs(uni(mt)); }; // Get a unit vector with random direction. |