If
your courses have links to a single directory which contains this
problem under it (which is now the typical way of setting things up),
then changing the one file changes the problem for all students in all
courses which have it.
When changing "live" problems, I try to change them so that the random
values won't change for people who have a good version - only for those
who need new values. For you this may not be important (e.g., if there
is just one class and you can make an announcement).
It is sometimes more difficult to do that, but usually not too bad. In this problem, it can be accomplished with
$a = random(1,8,1); do{ $c=random(2,8); } until ($a != 1 or $c != 2); do {$b = random(1,$c-1,1);} until ($b !=$a);
John
<| Post or View Comments |>
|