Added optional parameter mix.

Jump to: navigation, search

Hi Jim,

My attempt at randomizing the answers. Parameter mix set to a default of false. If set true, then answers are randomized. Declaration of the random array is not trustworthy. It currently can only hold ten questions when mix is set to true. I don't know how to .push for a multidimensional array in javascript. Maybe some kind of error trapping then add the extra dimension above 10?

Kruhly (talk)19:36, 23 October 2011

I figured out how to add a dimension to the multidimensional array called rand in the widget using .push(). The widget should now be reliable for any number of questions when the mix parameter is set to true.

Kruhly (talk)15:35, 26 October 2011