Professional Documents
Culture Documents
1
1
Things to note:
number of documents in your doc collection or view that you are going to select
docs from.
Once you have run randomizer() the outlist array will contain the document
example usage:
forall x in outlist
doc = view.getnthdocument(x)
endforall
--or--
forall x in outlist
doc = collection.getnthdocument(x)
endforall
redline@thereeses.net
Custom test dbs can also be developed.. for a price of course ;-)
Option Public
Sub Initialize
Call randomizer()
End Sub
Function randomizer()
total_questions% = 50
how_many% = 10
total_questions% = total_questions% -1
For x = 0 To (total_questions%)
tarray(x) = x+1
Next
outlist(place) = tarray(anum%)
Call reorg(anum%)
Next
End Function
Dim x As Integer
tarray(x) = tarray(x+1)
Next
total_questions% = total_questions% -1
End Function