File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ $inputs = array(
38
38
// float data
39
39
/*6*/ 10.5 ,
40
40
-10.5 ,
41
- 12.3456789000e10 ,
41
+ 12.3456789000E8 ,
42
42
12.3456789000E-10 ,
43
43
.5 ,
44
44
@@ -79,7 +79,7 @@ $inputs = array(
79
79
$ iterator = 1 ;
80
80
foreach ($ inputs as $ input ) {
81
81
echo "\n-- Iteration $ iterator -- \n" ;
82
- var_dump (mt_rand ($ input , 100 ));
82
+ var_dump (mt_rand ($ input , mt_getrandmax () ));
83
83
$ iterator ++;
84
84
};
85
85
fclose ($ fp );
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ $inputs = array(
79
79
$ iterator = 1 ;
80
80
foreach ($ inputs as $ input ) {
81
81
echo "\n-- Iteration $ iterator -- \n" ;
82
- var_dump (mt_rand (100 , $ input ));
82
+ var_dump (mt_rand (- 1 * mt_getrandmax () , $ input ));
83
83
$ iterator ++;
84
84
};
85
85
fclose ($ fp );
You can’t perform that action at this time.
0 commit comments