@@ -1 +1,1512 @@
+totNumQuest = 1;%0A%0A%0Avar names = %5B%22Scott%22, %22Fred%22, %22Elizabeth%22, %22Kumar%22, %22Harold%22, %22Jensa%22, %22Maria%22, %22Beth%22, %22Steve%22, %22Harry%22, %22Lucy%22, %22Teneala%22, %22Henrietta%22, %22Bernadette%22, %22Delphinia%22, %22Renea%22, %22Paz%22, %22Stephanie%22, %22Sara%22, %22Sarah%22, %22Larry%22, %22Jerry%22, %22Garry%22, %22Gary%22%5D;%0A%0Afunction = randomElementOf(theArray) %7B%0A  return theArray%5BMath.floor(Math.random() * theArray.length)%5D;%0A%7D%0A%0Afunction loadQuestion(qn) %7B%0A  if (qn == 1) %7B%0A    sides = %5B4,6,8,12,20%5D%0A    side = randomElementOf(sides);%0A    name1 = randomElementOf(names);%0A    rollN = Math.floor(Math.random() * 8) + 2;%0A    rolls =%5B%5D;%0A    owside = Math.floor(Math.random()*side)+1;%0A%0A    question = name1 + %22 rolls a fair %22 + side + %22-sided die. %22 + name1 + %22 rolls the dice %22 + rollN + %22 times. %22;%0A    question += %22The rolls were: %22;%0A    for (i = 0; i%3C rollN; i++) %7B%0A      rolls.push(Math.floor(Math.random()*side)+1);%0A      question += rolls%5Bi%5D + %22, %22;           %0A    %7D%0A    question += %22. What is the probability of rolling a %22 + owside + %22?%22;%0A    question += %22%3Cbr%3E%3Cbr%3EEnter your answer as a fraction using the '/' symbol. i.e. 1/2.%22;%0A    answer = %221/%22 + side;%0A    kurl = %22https://www.khanacademy.org/math/precalculus/prob-comb/basic-prob-precalc/e/probability_1%22;%0A  %7D%0A  document.getElementById(%22question%22).innerHTML = question;%0A  document.getElementById(%22Khan%22).innerHTML = 'For more practice, visit %3Ca href=%5C%22' + kurl + '%3E' + kurl + '%3C/a%3E';%0A%7D%0A                 %0AnewQuestion() %7B%0A  Qn = Math.floor(Math.random()*totNumQuest)+1;%0A  loadQuestion(Qn);%0A%7D%0A  %0A  newQuestion();
 %0A

Update praxis.js