function randomQuestion(options, details)

randomQuestion generates & displays sets

randomQuestion automaticly shuffles questions in multiple choice

randomQuestion returns CorrectAnswer(Qid, EnteredAnswer)

randomQuestion also returns WrongAnswer(Qid, EnteredAnswer)

randomQuestion on fail, returns {error:Error Explanation,specs:details}

options: [Question,Answer,Wrong Answer 1, Wrong Answer 2, Wrong Answer 3]

Question/answers set. Wrong answers do not need specfication in written questions

details

type: 0

Sets type to Multiple Choice

type: 1

Sets type to Written

color: [ TopRightBgColor, TopLeftBgColor, BottomLeftBgColor, BottomRightBgColor, WrittenBgColor, TopRightColor, TopLeftColor, BottomLeftColor, BottomRightColor, WrittenColor]

Specifys Color and BackgroundColor For Buttons

function shuffleArray(array)

Can shuffle anything

There is no reason to use this when interacting with Learnlooly API, but it can be useful

Returns a shuffled array

Array

Array can be a list of anything you want to shuffle.

function getMCitems(list)

Returns a array with other answers for Multiple Choice

the returned array is arranged [Question, Answer, Fake Answer A, Fake Answer B, Fake Answer C]

list

list should be a array of Question/Answer sets you want to Make Into a MC list.

function MCimportstack(listitem, list)

Turns an indvidual item into A MC list

function CorrectAnswer(Qid, EnteredAnswer)

function WrongAnswer(Qid, EnteredAnswer)

randomQuestion returns CorrectAnswer(Qid, EnteredAnswer) if the correct answer is given

randomQuestion also returns WrongAnswer(Qid, EnteredAnswer) if the wrong answer is given

Neither answer function is defined and both must be defined