PREP 2013 Question Authoring - Archived

Error when trying to use list_random

Error when trying to use list_random

by Anneke Bart -
Number of replies: 2
I was trying to rewrite an existing problem so that it would use one of a list of values, but when I save and try to run it a message states that I need a certain package?
What package do I need to include at the beginning of the problem so that I can use the list_random{} ?

Anneke
In reply to Anneke Bart

Re: Error when trying to use list_random

by Gavin LaRose -
Hi Anneke,

list_random should be in the default path, unless you took the basic macros out of the loadMacros call. The call should be with parentheses, not squiggly brackets:

    list_random( 'item1', 'item2' );

Is there any chance that's the problem? If not, post problem set and problem information and we can look to see what's going on.

Gavin