so I am writing a program about the monte carlous math problem and I am doing the visual side of it. I mostly have everything set, the only issue is that I can't put the pixels in a loop for some reason. Any help? I've already tried a for loop though.
public class Main extends Application {
    @Override
    public void start(Stage primaryStage) 
    {
        int width = 1;
        int random = ((int)Math.random()*400)+1;
        // Create the Colors
        Color white = Color.web("rgb(255,255,255)");
        Color black = Color.web("rgb(0,0,0)");
        //making the square
        Rectangle square = new Rectangle(115,50,400,400);
        square.setFill(black);
        square.setStroke(white);
        square.setStrokeWidth(width);
        //Drawing the Circle and pixels
          Circle circle = new Circle();
          Circle pixel = new Circle();
          //Setting the properties of the circle 
          circle.setCenterX(315.0f); //moves the cirlce left or right 
          circle.setCenterY(250.0f); //moves the circle up and down
          circle.setRadius(200.0f);
          circle.setFill(black);
          circle.setStroke(white);
          circle.setStrokeWidth(width);
          //setting properties of the pixels
          for(int i = 0; i<1000; i++)
          {
                  pixel.setCenterX((int)(Math.random()*400)+1);
                  pixel.setCenterY((int)(Math.random()*400)+1);
                  pixel.setRadius(1);
                  pixel.setFill(white);
          }
        //Creating a Group object  
          Group Root = new Group(circle);
            Pane pane = new Pane();
            pane.getChildren().addAll(square,circle,pixel);
            Scene scene = new Scene(pane,630,500);
            primaryStage.setScene(scene);
            primaryStage.show();
    }
    public static void main(String[] args)
    {
        launch(args);
    }
}
 
    