A collection of some useful functions that use random
npm install bm-random#BM-Random
This module provides some useful functions that uses random.
##Installation
```
$ npm install bm-random
##API:
####fromArray
``
.fromArray(array: arrayarray
Returns a random element of or undefined if array is empty
####fromRange
``
.fromRange(min: number, max: number, step: number = 1): number
.fromRange(options: { min: number, max: number, step: number = 1 })max
_Preconditions:_
- _ should be greater than or equal to min_step
- _ should be positive_max
- _the difference between and min should be a multiple of step_
Returns a random number in \[min; max\] whose distance from min is a multiple of step
####neutral
``
.neutral(n: number): numbern
_Preconditions:_
- _ should be a neutral number_
Returns a neutral number that is lesser than n`