@ -98,7 +98,5 @@ object QuestionStub {
question1, question2, question3, question4, question5, question6, question7, question8, question9, question10
)
val allQuestionsShuffled: List<Question> = listOf(
val shuffleRandomQuestions: List<Question> = allQuestions.shuffled().take(10)
).shuffled()
}
@ -84,7 +84,7 @@ fun QuizEndPage(
textAlign = TextAlign.Center
val nbQuestions = QuestionStub.allQuestionsShuffled.size
val nbQuestions = 10
Text(
text = "Nombres de Questions : $nbQuestions",
color = Color.White,
@ -30,7 +30,7 @@ fun QuizRandom(
navSearch: () -> Unit,
navControllerQuizEnd: (Int, Int) -> Unit,
) {
val questions = QuestionStub.allQuestionsShuffled
val questions = QuestionStub.shuffleRandomQuestions
var idCurrentQuestion by remember { mutableIntStateOf(0) }
var pts by remember { mutableIntStateOf(0) }
var lifes by remember { mutableIntStateOf(3) }