now random<integer types> spans over 0..RAND_MAX, or -RAND_MAX/2..RAND_MAX/2 for signed types, or the most significant bits for smaller integer types.

This commit is contained in:
Benoit Jacob
2011-02-07 10:55:41 -05:00
parent 3386a946f8
commit ba9f6a2c3b
2 changed files with 63 additions and 2 deletions

View File

@@ -152,6 +152,7 @@
#include <cstring>
#include <string>
#include <limits>
#include <climits> // for CHAR_BIT
// for min/max:
#include <algorithm>