I think the shuffle until it's different pattern is fine. you could do like:
 `newanswers = data['answers'].shuffle until (newanswers && newanswers != data['answers'])`
if you want to get away from the begin end
(or if you want to keep it, I think it's clearer to format it more like)
````
begin
  newanswers = data['answers'].shuffle
end while newanswers == data['answers']
````