Fix randrun and deps including shuffle. Fixes #1441
This commit is contained in:
parent
b0c0a393a1
commit
05bcd5e32f
1 changed files with 1 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ export const randrun = (n) => {
|
|||
const rands = timeToRands(t.floor().add(0.5), n);
|
||||
const nums = rands
|
||||
.map((n, i) => [n, i])
|
||||
.sort((a, b) => a[0] > b[0] - a[0] < b[0])
|
||||
.sort((a, b) => (a[0] > b[0]) - (a[0] < b[0]))
|
||||
.map((x) => x[1]);
|
||||
const i = t.cyclePos().mul(n).floor() % n;
|
||||
return nums[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue