[PLUG] size of RAND_MAX

Daniel Hedlund daniel at digitree.org
Fri Feb 8 07:33:41 UTC 2013


On Thu, Feb 7, 2013 at 10:33 PM, website reader
<website.reader3 at gmail.com>wrote:

> My system is 64 bit OS. Can I assume that MAX_RAND = 2^64-1 ??
>

$> grep -R "define\s*RAND_MAX" /usr/include
/usr/include/stdlib.h:#define RAND_MAX 2147483647

Looks like it's hard-coded to 2**32/2-1.



More information about the PLUG mailing list