Skip to content

Instantly share code, notes, and snippets.

@hoangtranson
Created April 7, 2018 08:16
Show Gist options
  • Save hoangtranson/531f3e9a432a7e061b4a9d67dd9afe64 to your computer and use it in GitHub Desktop.
Save hoangtranson/531f3e9a432a7e061b4a9d67dd9afe64 to your computer and use it in GitHub Desktop.
Util to work with array
export const arrayofRandom = randomCeil => length => Array.from({ length: length }, (v, i) => Math.floor(Math.random() * randomCeil));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment