qa.js
//Call this function to get questions

Call this function to get questions
Call this function to get questions
function RandomlyGetQuestions(questionAmount){
				var totalNumberOfQuestion = questions.length;
				var selectedQuestions = [];
				if(questionAmount > totalNumberOfQuestion){
					return questions;
				}
				var questionNumbers = RandomMultipleNumbers(totalNumberOfQuestion, questionAmount);
				questionNumbers.forEach(function(n){
					selectedQuestions.push(questions[n]);
				});
				return selectedQuestions;
			}
function RandomlyGetQuestions ( questionAmount ) { var totalNumberOfQuestion = questions . length ; var selectedQuestions = [ ] ; if ( questionAmount > totalNumberOfQuestion ) { return questions ; } var questionNumbers = RandomMultipleNumbers ( totalNumberOfQuestion , questionAmount ) ; questionNumbers . forEach ( function ( n ) { selectedQuestions . push ( questions [ n ] ) ; } ) ; return selectedQuestions ; }
Call this function to get questions
Call this function to get questions