Thread:Extension talk:DynamicPageList (Wikimedia)/Can I count the pages with a templates/reply

I don't think it's possible to do it with the Wikimedia version of DPL, but Extension:DynamicPageList (third-party) does have the capabilities you seek. You will need a "random number generator" though for the random output, either a pseudo-pseudo-random template like Template:Random number or a real pseudo-random generator as in Lua (Extension:Scribunto).