What a neat idea... would make for a good plugin :) This works (tested):
$random_question = qa_db_read_one_assoc( qa_db_query_sub( 'SELECT * FROM ^posts WHERE type=$ ORDER BY rand() LIMIT 1', 'Q' ), true );
It returns an array of one question.