[LON-CAPA-cvs] cvs: loncom /homework matchresponse.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 20 Feb 2003 08:57:51 -0000
albertel Thu Feb 20 03:57:51 2003 EDT
Modified files:
/loncom/homework matchresponse.pm
Log:
- Fixes most of BUG#1263, matchresponse items now randomize
Index: loncom/homework/matchresponse.pm
diff -u loncom/homework/matchresponse.pm:1.1 loncom/homework/matchresponse.pm:1.2
--- loncom/homework/matchresponse.pm:1.1 Mon Jan 27 19:11:49 2003
+++ loncom/homework/matchresponse.pm Thu Feb 20 03:57:51 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Full matching style response
#
-# $Id: matchresponse.pm,v 1.1 2003/01/28 00:11:49 albertel Exp $
+# $Id: matchresponse.pm,v 1.2 2003/02/20 08:57:51 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -101,7 +101,7 @@
if (!defined(@{ $Apache::response::itemgroup{'names'} })) { return; }
my @names=@{ $Apache::response::itemgroup{'names'} };
my $randomize =&Apache::lonxml::get_param('randomize',$parstack,$safeeval);
- if ($randomize != 'no' ) {
+ if ($randomize ne 'no' ) {
@names=&Math::Random::random_permutation(@names);
}
my %letter_name_map;