package Chapter03;
import java.util.Random;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;
public class project3_13 extends Application {
public void start(Stage primaryStage) throws Exception {
// TODO Auto-generated method stub
Circle circle = new Circle();
circle.setCenterX(200);
circle.setCenterY(200);
Random r = new Random();
float no = r.nextInt((150 - 50) + 1) + 50;
System.out.println("==>" + no);
circle.setRadius(no);
Group root = new Group();
Scene scene = new Scene(root, no + 300, no + 300);
primaryStage.setTitle("Drawing a circle");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
// TODO Auto-generated method stub
launch(args);
}
}