[LON-CAPA-cvs] cvs: loncom(version_1_0_2) /homework/caparesponse caparesponse.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 23 Oct 2003 19:36:02 -0000


albertel		Thu Oct 23 15:36:02 2003 EDT

  Modified files:              (Branch: version_1_0_2)
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  - backport 1.119
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.107.2.3 loncom/homework/caparesponse/caparesponse.pm:1.107.2.4
--- loncom/homework/caparesponse/caparesponse.pm:1.107.2.3	Wed Oct 15 17:26:46 2003
+++ loncom/homework/caparesponse/caparesponse.pm	Thu Oct 23 15:36:02 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.107.2.3 2003/10/15 21:26:46 albertel Exp $
+# $Id: caparesponse.pm,v 1.107.2.4 2003/10/23 19:36:02 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -445,6 +445,7 @@
 
 sub make_numerical_bubbles {
     my ($number_of_bubbles,$target,$answer,$format) =@_;
+    my @oldseed=&Math::Random::random_get_seed();
     my @bubble_values = ();
     my @factors = (1.13,1.17,1.25,1.33,1.45); #default values of factors
     my @powers = (1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0); #default values for powers
@@ -459,6 +460,7 @@
 					       $format,$target);
 
     }
+    &Math::Random::random_set_seed(@oldseed);
     return @bubble_values;
 }