Licence
AGPL-3.0
Version
4.1.0
Deps
0
Size
511 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)
@randomized/random
Randomness algorithms for JavaScript. See docs. Parent is js-algorithms.
Depending on your environment, the code may require
regeneratorRuntimeto 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' ;