@randomized/random
v4.1.0
Published
Randomness algorithms for JavaScript
Downloads
746
Readme
:game_die: @randomized/random
Randomness algorithms for JavaScript. See docs. Parent is 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 '@randomized/random' ;