Latest news 2025-07-09: New blog post: The Problem of Name Clashes and Lost Resources for Digital Historians (RISC OS ARMTeX).

probsoln package FAQ

Can’t randomly select n item(s) 🔗

You have asked to randomly select n items from a list that has less than n elements. For example, the following will generate this error:

\doforrandN{10}{\file}{file1,file2,file3}{%
\loadrandomproblems{2}{\file}}
In this case the list, file1,file2,file3 has only 3 elements, but the user has asked for 10 elements. If you type “h” at the LaTeX prompt, it will tell you how many items it thinks there are in the list. Remember that each item must be separated by a comma.

2020-07-03 11:13:01


Permalink: https://www.dickimaw-books.com/faq.php?id=155
Alternative link: https://www.dickimaw-books.com/faq.php?itemlabel=prsrandexceededmax

Category: probsoln package
Topic: Error Messages