Good afternoon people;

I have a conceptual question that I cant solve; I have 15 Vars and each one generates a random number of 1 to 15 as well;

something like:

```
Var 1 = randi ()% 15 + 1
Var 2 = randi ()% 15 + 1
Var 3 = randi ()% 15 + 1
```

...

And so succecutively.

However, I would like Var 1 generate a number between 1 and 15 and reserve this number so that Var 2 could generate numbers from 1 to 15 minus the number reserved to Var 1, and Var 3 would generate numbers from 1 to 15 minus the numbers generated for Var 1 and Var 2 and so on, until Var 15 can generate numbers from 1 to 15 minus the 14 previously generated numbers to other Vars.

I thought I would do this with a bunch of IF statements, comparing

```
if Var 2 == Var 1, generate again,
if Var 3 == Var 2 and Var 3 == 1, generate again
```

and so on.

Is there a better way or is this IFs the best way?

Thank you guys