This package has been deprecated

Author message:

This package has been renamed to @randomized/random.

@aureooms/js-random

3.4.0 • Public • Published

🎲 @aureooms/js-random


© xkcd.com

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

⚠️ 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

Package Sidebar

Install

npm i @aureooms/js-random

Weekly Downloads

11

Version

3.4.0

License

AGPL-3.0

Unpacked Size

581 kB

Total Files

14

Last publish

Collaborators

  • aureooms