Return correct number of random questions

When :exclude is provided, we need to subtract one from maximum offset
(one question less to choose from).