diff --git a/src/main/java/com/ALGo/ALGo_server/quiz/Service/QuizService.java b/src/main/java/com/ALGo/ALGo_server/quiz/Service/QuizService.java index 9595cfd..78e1d6a 100644 --- a/src/main/java/com/ALGo/ALGo_server/quiz/Service/QuizService.java +++ b/src/main/java/com/ALGo/ALGo_server/quiz/Service/QuizService.java @@ -22,7 +22,7 @@ public QuizResponseDto getQuiz(){ Set quizDtoList = new HashSet<>(); while (quizDtoList.size() < 4){ - Long randomNum = Long.valueOf(random.nextInt(16) + 1); + Long randomNum = Long.valueOf(random.nextInt(20) + 1); Quiz q = quizRepository.findById(randomNum).get(); QuizDto quizDto = new QuizDto(q); quizDtoList.add(quizDto);