We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9cefdf9 + 3fb9c0f commit 26f77dfCopy full SHA for 26f77df
macros/ui/PGchoicemacros.pl
@@ -800,7 +800,9 @@ sub invert {
800
801
sub NchooseK {
802
my ($n, $k) = @_;
803
- return random_subset($k, 0 .. $n - 1);
+ # force list context
804
+ my @return = random_subset($k, 0 .. $n - 1);
805
+ return @return;
806
}
807
808
=item [DEPRECATED] shuffle()
@@ -815,7 +817,9 @@ sub NchooseK {
815
817
816
818
sub shuffle {
819
my ($i) = @_;
- return random_subset($i, 0 .. $i - 1);
820
821
+ my @return = random_subset($i, 0 .. $i - 1);
822
823
824
825
=item [DEPRECATED] match_questions_list()
0 commit comments