노수봉/spring/homework/src/main/java/kr/eddi/demo/controller/first/DiceController.java
<filename>노수봉/spring/homework/src/main/java/kr/eddi/demo/controller/first/DiceController.java<gh_stars>0package kr.eddi.demo.controller.first;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DiceController {

    @GetMapping("/Homework1")
    public String Dice (){
        int Dice = (int)((Math.random() * 6) + 1);
        return "주사위 수 : " + Dice;
    }


}
