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 int, float given in %s on line %d
145 Warning: mt_rand() expects parameter 2 to be int, string given in %s on line %d
150 Warning: mt_rand() expects parameter 2 to be int, string given in %s on line %d
155 Warning: mt_rand() expects parameter 2 to be int, array given in %s on line %d
160 Warning: mt_rand() expects parameter 2 to be int, string given in %s on line %d
165 Warning: mt_rand() expects parameter 2 to be int, string given in %s on line %d
170 Warning: mt_rand() expects parameter 2 to be int, string given in %s on line %d
175 Warning: mt_rand() expects parameter 2 to be int, object given in %s on line %d
186 Warning: mt_rand() expects parameter 2 to be int, resource given in %s on line %d