임재범/spring/randomDice/src/main/java/kr/eddi/demo/controller/homework/first/homework1.java
<reponame>EDDI-WebAppAcademy/Homework<filename>임재범/spring/randomDice/src/main/java/kr/eddi/demo/controller/homework/first/homework1.javapackage kr.eddi.demo.controller.homework.first;

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



@RestController
public class homework1 {

    @GetMapping("/homework1")
    public String diceRoll() {
        int num = (int) (Math.random()*6)+1;
        return "운명의 주사위 결과는 "+num+"입니다.";
    }
}