Skip to content

randomized-algorithm/random

Folders and files

NameName
Last commit message
Last commit date
Apr 6, 2021
Apr 6, 2021
Apr 6, 2021
Apr 6, 2021
Apr 6, 2021
Apr 6, 2021
Apr 6, 2021
Apr 6, 2021
Apr 6, 2021
Apr 6, 2021
Oct 2, 2014
Apr 6, 2021
Apr 6, 2021
Apr 6, 2021
Apr 6, 2021
Apr 6, 2021

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