update generate quiz randomly by query