> This works successfully however it is still possible for it to chuck up and country at any

> time e.g. UK 3 times in a row. I want to know how to not generate a number that has already

> been generated.

Suppose you have n (0 to n-1)elements in the array. Choose a prime number k such that k < n. Try to keep k as large as possible. You can change the number k dynamicaly in order to generate questions in a different sequence in subsequent runs.

First question will be Q1

second will be Q(1+k)%n

third will be (1+2k)%n

and so on

Sunnycoder