10000 GitHub - randomized-algorithm/random at v3.3.0
[go: up one dir, main page]

Skip to content

randomized-algorithm/random

Repository files navigation


© 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

Packages

No packages published

Contributors 6

0