File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Change Log / Ray Tracing in One Weekend
55
66### Common
77 - Fix -- Fixed some dangling references to ` random_in_unit_sphere() ` (#1637 )
8+ - Fix -- Clarify ` uniform_real_distribution ` usage for ` random_double() ` (#1680 )
89
910### In One Weekend
1011 - Fix -- Fix equation for refracted rays of non-unit length (#1644 )
Original file line number Diff line number Diff line change 20442044 }
20452045 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
20462046
2047+ inline double random_double(double min, double max) {
2048+ // Returns a random real in [min,max).
2049+ return min + (max-min)*random_double();
2050+ }
2051+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
2052+
2053+
20472054 ...
20482055
20492056 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments