If there are many questions, choose five without repeating How do this? Thanks a lot for help
My GetQuestion Code
Public Function GetQuestion( Byval QuestionNumber )
On Error Resume Next
Dim MyUIWorkspace As New NotesUIWorkspace
Dim MyDoc As NotesDocument
Set MyDoc = MyUIWorkspace.CurrentDocument.Document
Dim Question
Dim LineNo
LineNo = 0
Forall Tmp In MyDoc.GetFirstItem( "Questions" ).Values
If LineNo = QuestionNumber Then Question = Tmp
LineNo = LineNo +1
End Forall
LineNo = 0
Forall Tmp In MyDoc.GetFirstItem( "Answers" ).Values
If LineNo = QuestionNumber Then Answers = Tmp
LineNo = LineNo +1
End Forall
Dim MyVar() As Variant
Redim MyVar(1)
MyVar(0) = Question
MyVar(1) = Answers
GetQuestion = MyVar
End Function

Create a function to get a random number of values from an array...
And now you can just do
(Note:
MyDoc.QuestionsandMyDoc.GetFirstItem( "Questions" ).Valuesboth return an array of values that's a snapshot... Changing that array will not automatically affect the values of the field.)