JSFiddle - React, Tailwind, and code Playground
by igalst
HTML
Your question is <span id="foo"></div>
JavaScript
var foo = document.getElementById("foo");
var questions = [1,4,6,8,9,10,11];
var questionsAmount = questions.length;
var questionIndex = Math.floor(Math.random() * questionsAmount);
var question = questions[questionIndex];
foo.innerText = question;