JSPM

@randomized/random

4.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q90056F
  • License AGPL-3.0

Randomness algorithms for JavaScript

Package Exports

  • @randomized/random

Readme

🎲 @randomized/random


© xkcd.com

Randomness algorithms for JavaScript. See docs. Parent is 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 '@randomized/random' ;

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size