CC1
This commit is contained in:
+3
-1
@@ -292,7 +292,9 @@
|
||||
if (questions.length === 0) return;
|
||||
|
||||
const QuestionPop = false;
|
||||
const preguntaAleatoria = questions[Math.floor(Math.random() * questions.length)];
|
||||
const indiceAleatorio = Math.floor(Math.random() * questions.length);
|
||||
const preguntaAleatoria = questions[indiceAleatorio];
|
||||
questions.splice(indiceAleatorio, 1); // Eliminar la pregunta usada
|
||||
const opcionesBarajadas = shuffleArray([...preguntaAleatoria.opciones]);
|
||||
|
||||
let opcionesHTML = '';
|
||||
|
||||
Reference in New Issue
Block a user