We want to position a Circle circle on our canvas to be at a random position, but we want to keep the entire shape on the screen. Which of the following will accomplish this?

var x = Randomizer.nextInt(0, getWidth() - circle.getRadius());
var y = Randomizer.nextInt(0, getHeight() - circle.getRadius());
circle.setPosition(x, y);
JavaScript

var x = Randomizer.nextInt(circle.getRadius(), getWidth() - circle.getRadius());
var y = Randomizer.nextInt(circle.getRadius(), getHeight() - circle.getRadius());
circle.setPosition(x, y);
JavaScript

var x = Randomizer.nextInt(0, getWidth());
var y = Randomizer.nextInt(0, getHeight());
circle.setPosition(x, y);
JavaScript

var x = Randomizer.nextX();
var y = Randomizer.nextY();
circle.setPosition(x, y);

The correct answer is:

var x = Randomizer.nextInt(circle.getRadius(), getWidth() - circle.getRadius());
var y = Randomizer.nextInt(circle.getRadius(), getHeight() - circle.getRadius());
circle.setPosition(x, y);
JavaScript