@aureooms/js-random

Randomness algorithms for JavaScript

Stats

StarsIssuesVersionUpdatedCreatedSize
@aureooms/js-random
163.4.09 months ago5 years agoMinified + gzip package size for @aureooms/js-random in KB

Readme

:game_die: @aureooms/js-random


© xkcd.com

Randomness algorithms for JavaScript. See docs. Parent is @aureooms/js-algorithms.

:warning: Depending on your environment, the code may require regeneratorRuntime to be defined, for instance by importing regenerator-runtime/runtime.

import {
    randint , // randint(i, j) -> [i, j[ \cap ZZ
    randfloat , // randfloat(i, j) -> [i, j[
    sample , // /!\ in-place
    shuffle , // /!\ in-place
} from '@aureooms/js-random' ;

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.