Function: org-roam-node-random

org-roam-node-random is an autoloaded, interactive and byte-compiled function defined in org-roam-node.el.

Signature

(org-roam-node-random &optional OTHER-WINDOW FILTER-FN)

Documentation

Find and open a random Org-roam node.

With prefix argument OTHER-WINDOW, visit the node in another window instead. FILTER-FN is a function to filter out nodes: it takes an org-roam-node, and when nil is returned the node will be filtered out.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-node.el
;;;###autoload
(defun org-roam-node-random (&optional other-window filter-fn)
  "Find and open a random Org-roam node.
With prefix argument OTHER-WINDOW, visit the node in another
window instead.
FILTER-FN is a function to filter out nodes: it takes an `org-roam-node',
and when nil is returned the node will be filtered out."
  (interactive current-prefix-arg)
  (org-roam-node-visit
   (cdr (seq-random-elt (org-roam-node-read--completions filter-fn)))
   other-window))