Show Random Note (incl. keyboard shortcut)

#+BEGIN_QUERY
{:title "Random page: "
 :query [:find ?name
         :where
         [?b :block/name ?name]]
 :result-transform (fn [result]
                     [(rand-nth result)])
:view (fn [result]
       [:div.flex.flex-col
        (for [link result]
         [:a {:href (str "#/page/" link)} link]
    )])
 :collapsed? false}
#+END_QUERY

This works for me. Partially based on what’s here, and what’s at Advanced query for a list of all the links in current page