Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@aureooms/js-random

aureooms14AGPL-3.0deprecated3.4.0

This package has been renamed to @randomized/random.

Randomness algorithms for JavaScript

javascript, js, randfloat, randint, random, randomness, sample, shuffle

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