use acroweb_eng; # we print the head system("cat template2.head"); # variant A : four random questions from the file template.txt first # and then another four questions from file template2.txt #print genrandom("template.txt",4,4,0); #print genrandom("template2.txt",4,4,1); # variant B : four random questions from the file template.txt and # four questions from file template2.txt in random order @outA=genrandom("template.txt",4,4,0); @outB=genrandom("template2.txt",4,4,0); @out=(@outA, @outB); print permutemyfield(@out); # we finish the file system("cat template2.tail");