From f7a400951a89f2aa38d02fba1e9dd53c826ab265 Mon Sep 17 00:00:00 2001 From: Satyam singh <106249269+Satyam12singh@users.noreply.github.com> Date: Wed, 10 Dec 2025 01:16:30 +0530 Subject: [PATCH] Fix docs: replace mx.random.randn with mx.random.normal (#2890) --- docs/src/usage/indexing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/usage/indexing.rst b/docs/src/usage/indexing.rst index 669a38f19..8dc01cfc8 100644 --- a/docs/src/usage/indexing.rst +++ b/docs/src/usage/indexing.rst @@ -186,7 +186,7 @@ Boolean masks follow NumPy semantics: .. code-block:: shell >>> a = mx.arange(1000).reshape(10, 10, 10) - >>> a[mx.random.randn(10, 10) > 0.0] = 0 # valid: mask covers axes 0 and 1 + >>> a[mx.random.normal((10, 10)) > 0.0] = 0 # valid: mask covers axes 0 and 1 The mask of shape ``(10, 10)`` applies to the first two axes, so ``a[mask]`` selects the 1-D slices ``a[i, j, :]`` where ``mask[i, j]`` is ``True``.