diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-10-13 14:16:54 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-10-13 14:16:54 -0400 |
| commit | dfb0cbdd3bf318c5c6af2616560a140e48c8ccdd (patch) | |
| tree | f93e7196f53c1b10c973082b017b70ecc493c772 /docs | |
| parent | db50d41a0e4935afca52f087fbf09310f626f33f (diff) | |
Allow enclosed number left argument to •rand.Range
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/bqn.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/bqn.js b/docs/bqn.js index 7fc0c096..ae02a322 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -591,7 +591,7 @@ let rand = (() => { let n = 1; if (!w.sh) reqnat("Range: 𝕨", n=w); else { - if (w.sh.length!==1) throw Error("Range: array 𝕨 must have rank 1"); + 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); |
