Hi
You don't say what version of Opus you are using, so the solution given here applies to Opus O4 and beyond. All pages may not be displayed because you are assigning a random number to the pages to be displayed, therefore some pages may be repeatedly displayed whilst others are not. To achieve what you want, i.e. display all pages but in a random order why not:
1. use a master page to put your 'Random' button - and anything else you want to display constantly with that button.
2. construct the other pages you want to display
4. use something like the following code on the button
GotoNextRandomPage()
This function generates a randomised list of pages and goes to the next page in the list. When all pages have been displayed a new randomised list is created.
Hope this helps.
Paul Conway