Please take a look at Generate multiple choice alternatives, based on the answers in a repeat - #3 by viva_z