Thanks a lot for the help,
This is my question: in one word, I want to randomly get some of documents from a notes document collection. according some category and random number, the user will get the notes document collection from a notes view,The random number will be selected by the user. basically the user will get the a notes document collection first, then after they enter the random number from the pop - up box, for example:20, then the program will randomly select 20 documents from the collection he got from the first step.
So my question is the way to get the notes document collection from the view, using notesview.FTSearch, the result will be sorted, then if I get some of documents from this result, they are not randomly selected, this is not what I wanted, using the DB.Search, the result is not sorted,but I think it will use more time because it is searching the entire db. so do you have any other way, so I can get the result quickly and can randomly select the documents?
Yes, the rnd can be used to generate random number, I knew it, but on my case, the randomly number is entered by user, I just want random select documents from the collection .