| Bug #7281 | rand() gives range warnings over 15 bits | ||||
|---|---|---|---|---|---|
| Submitted: | 17 Oct 2000 11:26am UTC | Modified: | 10 Nov 2000 2:54pm UTC | ||
| From: | a dot schommer at dialogmedien dot de | Assigned to: | |||
| Status: | Closed | Category: | Math related | ||
| Version: | 4.0.2 | OS: | Solaris 2.7 | ||
[17 Oct 2000 11:26am UTC] a dot schommer at dialogmedien dot de
[10 Nov 2000 2:54pm UTC] hholzgra@php.net
this is system dependant , on Solaris 2.7 you have ./stdlib.h:#define RAND_MAX 32767 so that's it you can always use the PHP function getrandmax() to find out the max. difference between the min and max parameters for your system
