# Give every participant different numbers

> How parameters make one EduBase question generate its own numbers for every participant, with a worked z-score example from parameter to answer and constraint.

A parameterized question generates new values every time it is asked, so each participant solves the same task with their own numbers. Copying a neighbor's answer stops working, and one question gives endless practice. This page builds one such question; every parameter type is in [Parameter types and constraints](https://help.edubase.net/questions/parameters-reference/).

## How it works

You write the question once, with placeholders such as `{mu}` instead of numbers. Each placeholder is a parameter with a rule: a random whole number in a range, a value from a list, or a formula calculated from other parameters. When a participant starts the test, EduBase picks the values, puts them into the question, and calculates the correct answer from the same values. Results show each participant the numbers they had.

## Example: a z-score question

The demo statistics exam asks for a z-score: "Scores on a national test are normally distributed with a mean of `{mu}` points and a standard deviation of `{sigma}` points. What is the z-score of a student who scored `{x}` points?"

### 1. Write the question with placeholders

In the question editor, write the question text with the parameter names in curly brackets, as above. Set the **Correct answers** to `{z}`, the parameter that will hold the result.

### 2. Define the parameters

1. Choose **more options** under the editor, then open **Parameters**.
2. Set **Generated parameters** to **Manually defined**.
3. Add each parameter with its name, type and values, and **Add another parameter** for the next:

| Name | Type | Values |
|---|---|---|
| `mu` | INTEGER | range 55 to 75 |
| `sigma` | INTEGER | range 6 to 12 |
| `x` | INTEGER | range 40 to 98 |
| `z` | FORMULA | `({x}-{mu})/{sigma}`, precision 4 |

A formula can use parameters defined above it. Keep the formula's precision higher than the precision you ask for, and let the question's tolerance absorb the rounding: this question expects 2 decimal places and accepts an absolute tolerance of 0.01. See [Tolerance, partial credit, penalties, rubrics and skills](https://help.edubase.net/questions/scoring/).

![The Parameters section of the question editor: mu, sigma and x as INTEGER ranges, z as a FORMULA with precision 4, and the constraint {x}<>{mu}](https://help.edubase.net/assets/screens/questions/parameterized/01-parameters.webp)
/// caption
**Question editor → more options → Parameters**
///

### 3. Rule out unusable combinations

A z-score of 0 is a giveaway, so the score should never equal the mean. Set **Constraints** to **Manually defined** and add `{x}<>{mu}`. EduBase generates values until every constraint holds.

### 4. Save and try it

Save, then choose **try** to take the question yourself. After saving, EduBase also tests the question automatically: if generation fails too often, for example because the constraints are too tight, the question is marked inactive and left out of tests until you fix it. See [When a question cannot be generated](https://help.edubase.net/questions/parameters-reference/#when-a-question-cannot-be-generated).

## What participants get

Two participants of the same exam, the same question:

![The z-score question in one participant's results: mean 73, standard deviation 6, score 59, answer -2.33](https://help.edubase.net/assets/screens/questions/parameterized/02-participant-a.webp)
/// caption
**Exam → Users and results → a participant's result**
///

![The same question in another participant's results: mean 72, standard deviation 10, score 89, answer 1.7](https://help.edubase.net/assets/screens/questions/parameterized/03-participant-b.webp)
/// caption
**Exam → Users and results → another participant's result**
///

Both were marked correct against their own numbers.

## Tips

- Prefer narrowing a range to adding a constraint: generation is faster and never fails.
- Use LIST for words and names (`{metal; LIST; copper; iron; zinc}`), and PERMUTATION to shuffle values.
- Parameters also work in options, hints, solutions and [attachments](https://help.edubase.net/questions/parameterized-attachments/), so a dataset file can be generated for each participant.
- In an Excel or EDU upload and over the API, parameters go in one field: `{mu; INTEGER; 55; 75} &&& {sigma; INTEGER; 6; 12} &&& {x; INTEGER; 40; 98} &&& {z; FORMULA; ({x}-{mu})/{sigma}; 4}`. See [Import questions in bulk](https://help.edubase.net/questions/import/).

## Related

- [Parameter types and constraints](https://help.edubase.net/questions/parameters-reference/)
- [Numeric, expression, matrix, set and date/time](https://help.edubase.net/questions/types-math/)
- [Parameterized Excel, Word and CSV attachments](https://help.edubase.net/questions/parameterized-attachments/)
- [Run a secure online exam that carries consequences](https://help.edubase.net/guides/secure-exams/)
