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