aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/bqn.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/bqn.js b/docs/bqn.js
index ae02a322..7cee6474 100644
--- a/docs/bqn.js
+++ b/docs/bqn.js
@@ -594,7 +594,7 @@ let rand = (() => {
if (w.sh.length>1) throw Error("Range: array 𝕨 must have rank at most 1");
w.map(m => {reqnat("Range: 𝕨 element", m); n*=m;});
}
- return arr(Array(n).fill().map(r), w.sh?w:[m], 0);
+ return arr(Array(n).fill().map(r), w.sh?w:[n], 0);
};
let iota = x => Array(x).fill().map((_,i)=>i);
let deal_err = e => (x,w) => {