# Create a math quiz with LaTex by randomly choosing questions from a bank

Mathematics Educators Asked on January 19, 2021

I am looking for a simple solution to the following problem:

I would like to create a math quiz with n questions via LaTex (printable, in pdf) where question 1 is chosen randomly from question bank #1, question 2 is chosen randomly form question bank #2, etc.

Is there a simple way to do so? Thanks in advance.

Andrea

This can be done, although I haven't worked out a model to show how. Latex/Tex is a programming language in the sense that one can declare and initialize variables (newcounter, setcounter), iterate (there are while loops), and use conditionals (ifthenelse). Additionally, one caan call a random number generator (I don't habitually use this, but I think it is rand). Combined with input, include or some similar tool these ingredients are sufficient to write a latex file that generates an exercise sheet with problems drawn randomly from a bank.

Answered by Dan Fox on January 19, 2021

So in theory different students could get different questions? The software I know of that does this is WeBWorK. It will even score student-entered answers for you. See LINK . Supported by the Mathematical Association of America.

Answered by Gerald Edgar on January 19, 2021

As Brandon mentioned in a comment, I'm working to develop an online platform for this use-case, where the banks are generated using SageMath code and PreTeXt XML. Problem sets for linear algebra and differential equations are available to the public at https://checkit.clontz.org/ and I'll be working to add better support for new authors in the near future. The community for the CheckIt platform is on the #checkit-app channel of the Mastery Grading Slack.

Answered by StevenClontz on January 19, 2021

## Related Questions

### Ideal Features of Online Homework Platform?

0  Asked on January 6, 2022 by opal-e

### Intuition or geometry for Partial Fractions

2  Asked on December 28, 2021

### Impressive common misleading interpretations in statistics to make students aware of

20  Asked on November 22, 2021 by markus-klein

### Generating system of equations with unique solutions

2  Asked on November 17, 2021

### Ideas for explaining 4D and higher dimensions

11  Asked on September 6, 2021

### Concrete way to teach addition and subtraction of fractions

5  Asked on September 6, 2021

### What are some of the open problems that can be suitably introduced in a calculus course?

4  Asked on September 6, 2021 by zuriel

### The use of “$therefore$” and “$because$”

2  Asked on September 6, 2021

### When do college students learn rigorous proofs?

11  Asked on September 6, 2021 by user13395

### Why is a translated exponential function considered an exponential function?

4  Asked on September 6, 2021 by eleven-eleven

### Is there a literature database like MathSciNet for Mathematics Education?

1  Asked on September 6, 2021

### How to deal with a talented 11-year-old pupil?

8  Asked on September 6, 2021 by welshgandalf

### Teaching math long distance

3  Asked on September 6, 2021 by tkowal

### Why do some students struggle so much with fractions?

4  Asked on September 6, 2021 by timothy

### How do I show students the Beauty of Mathematics?

18  Asked on September 6, 2021 by axel-tong

### How rigorous should high school calculus be?

6  Asked on September 6, 2021 by a-goodier

### Future way of learning mathematics (towards graduate level)

2  Asked on September 6, 2021 by nothing

### Workbooks for advanced high school math topics

2  Asked on September 6, 2021

### Math Education for Students who use Right-to-Left Written Languages

2  Asked on September 6, 2021 by ari