for (let i = notes.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[notes[i], notes[j]] = [notes[j], notes[i]];
} https://video.nostr.build/0f8e32d2b63dcad11177cf9baa5f04bc571856aaaa6f6b2f09c80d1c85e971da.mp4
is this right?
Please Login to reply.
No replies yet.