Skip to content
Subhajit Sahu edited this page Mar 21, 2020 · 6 revisions

Welcome to the extra-array wiki!

RANDOM

Generating a random array of some length, with a random seed. But what about accepting a random generator? And what about random strings? https://www.npmjs.com/package/unique-random-array

  • random(n, r=Math.random())?

MERGE

Merging 2 arrays could also be done with a test function/boolean array. (zip) http://graphics.stanford.edu/~seander/bithacks.html#MaskedMerge

Clone this wiki locally