Global Feed Post Login
Replying to Avatar yunginter.net

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

Avatar
yunginter.net 1y ago

is this right?

Reply to this note

Please Login to reply.

Discussion

No replies yet.