Module for randomly generating exam questions