--- loncom/lonnet/perl/lonnet.pm 2002/06/26 19:46:19 1.245 +++ loncom/lonnet/perl/lonnet.pm 2002/06/27 16:03:55 1.247 @@ -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.247 2002/06/27 16:03:55 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1737,9 +1737,13 @@ sub allowed { } } -# Restricted by state? +# Restricted by state or randomout? if ($thisallowed=~/X/) { + if ($ENV{'acc.randomout'}) { + my $symb=&symbread(); + if ($ENV{'acc.randomout'}=~/\&$symb\&/) { return ''; } + } if (&condval($statecond)) { return '2'; } else {