0.0.2 • Published 7 years ago

lizia-random-permutation v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Build Status

lizia-random-permutation

make a random permutation of a array given, like lizia.

Install

$ npm install lizia-random-permutation

Usage

const permutate  = require('lizia-random-permutation')
permutate([1,2,3,4,5]) // [3,2,1,5,4] random permuted

API Documentation permutation -> object

permutation(Array,Number) -> Array

The param is the array to be random permuted, the optional params is number of permutation to be done if is not given is taken from 30, 50 interval. The array is passed by reference.