From 95fb337329b4c1d2f92e56220a4ffe2434547299 Mon Sep 17 00:00:00 2001
From: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
Date: Thu, 25 Apr 2024 13:57:18 +0100
Subject: [PATCH] xrandom: autodoc validate function & remove repeated content

---
 src/user-guide/writing-workflows/external-triggers.rst | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/user-guide/writing-workflows/external-triggers.rst b/src/user-guide/writing-workflows/external-triggers.rst
index b4ad1d8cc3..279060d295 100644
--- a/src/user-guide/writing-workflows/external-triggers.rst
+++ b/src/user-guide/writing-workflows/external-triggers.rst
@@ -400,14 +400,8 @@ time (useful for testing the effect of a long-running trigger function
 success. The function signature is:
 
 .. automodule:: cylc.flow.xtriggers.xrandom
-   :members: xrandom
-
-The ``percent`` argument sets the odds of success in any given call;
-``secs`` is the number of seconds to sleep before returning; and the
-``_`` argument (underscore is a conventional name for a variable
-that is not used, in Python) is provided to allow specialization of the
-trigger to (for example) task name, task ID, or cycle point (just use
-the appropriate string templates in the workflow configuration for this).
+   :members: xrandom, validate
+   :member-order: bysource
 
 An example xrandom trigger workflow: