김종찬/spring/homeworks1/src/main/java/kr/eddi/demo/basic/controller/second/secondHomeWork.java
<reponame>EDDI-WebAppAcademy/Homework<filename>김종찬/spring/homeworks1/src/main/java/kr/eddi/demo/basic/controller/second/secondHomeWork.javapackage kr.eddi.demo.basic.controller.second;

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

import java.util.Random;

@RestController
public class secondHomeWork {

    @GetMapping("/")
    public String dice() {
        Random random = new Random();
        int result = random.nextInt(6)+1;
        return "당신의 숫자 : "+result;

    }
}