added check for random question availability