--- loncom/lonnet/perl/lonnet.pm 2002/06/26 19:46:19 1.245 +++ loncom/lonnet/perl/lonnet.pm 2002/06/27 19:04:15 1.248 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.245 2002/06/26 19:46:19 www Exp $ +# $Id: lonnet.pm,v 1.248 2002/06/27 19:04:15 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1737,9 +1737,15 @@ sub allowed { } } -# Restricted by state? +# Restricted by state or randomout? if ($thisallowed=~/X/) { + if ($ENV{'acc.randomout'}) { + my $symb=&symbread($uri); + if (($symb) && ($ENV{'acc.randomout'}=~/\&$symb\&/)) { + return ''; + } + } if (&condval($statecond)) { return '2'; } else {