Lines Matching refs:mt_rand
2 Test mt_rand() function : usage variations - different data types as $max argument
7 /* Prototype : int mt_rand ([ int $min , int $max ] )
12 echo "*** Testing mt_rand) : usage variations ***\n";
80 // loop through each element of $inputs to check the behaviour of mt_rand()
84 var_dump(mt_rand(-1 * mt_getrandmax(), $input));
91 *** Testing mt_rand) : usage variations ***
116 Warning: mt_rand() expects parameter 2 to be integer, float given in %s on line %d
145 Warning: mt_rand() expects parameter 2 to be integer, string given in %s on line %d
150 Warning: mt_rand() expects parameter 2 to be integer, string given in %s on line %d
155 Warning: mt_rand() expects parameter 2 to be integer, array given in %s on line %d
160 Warning: mt_rand() expects parameter 2 to be integer, string given in %s on line %d
165 Warning: mt_rand() expects parameter 2 to be integer, string given in %s on line %d
170 Warning: mt_rand() expects parameter 2 to be integer, string given in %s on line %d
175 Warning: mt_rand() expects parameter 2 to be integer, object given in %s on line %d
186 Warning: mt_rand() expects parameter 2 to be integer, resource given in %s on line %d