Function: org-roam-node-random

org-roam-node-random is an interactive and natively 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

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/60hpqw2cczhjli65ml5v1p4g0q2kbyhb-emacs-packages-deps/share/emacs/site-lisp/elpa/org-roam-20260425.1623/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))