<a href="/test/randompage">Random</a>
[[!getResources? &sortby=`RAND()` &limit=`1`]]
This question has been answered by BobRay. See the first response.
just specify a tpl and then create a chunk on how you want it to output.[[!getPage? &element=`getResources` &parents=`157` &tpl=`myRecipesTpl` &showHidden=`0` &includeTVs=`1` &processTVs=`1` &limit=`4` &sortby=`RAND()` ]]
Do you mean redirect to a random resource on click?
<a href="[[!getResources? &tpl=`RandomTpl` &sortby=`RAND()` &limit=`1`]]">Random</a>
[[~[[+id]] ]]
You shouldn't need a separate resource. Try this:
<a href="[[!getResources? &tpl=`RandomTpl` &sortby=`RAND()` &limit=`1`]]">Random</a>
Then create a Tpl chunk called RandomTpl with just this code:
[[~[[+id]] ]]