diff --git a/painting/circle.js b/painting/circle.js index 85ff14d..09f9ff8 100644 --- a/painting/circle.js +++ b/painting/circle.js @@ -13,7 +13,7 @@ class Circle extends Shape { static randomOptions() { let opts = super.randomOptions(); - opts.r = Math.floor(Math.random() * (this.maxY / 2 - opts.x)); + opts.r = Math.floor(Math.random() * (this.maxY / 2)); return opts; }