JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2207148
  • Score
    100M100P100Q220017F
  • License CC0-1.0

Package Exports

  • math-random
  • math-random/browser/crypto
  • math-random/browser/index
  • math-random/crypto
  • math-random/node

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (math-random) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

math-random

math-random is an isomorphic, drop-in replacement for Math.random that uses cryptographically secure random number generation, where available

ci

install

npm install math-random

use

console.log(require('math-random')())
=> 0.584293719381094

console.log(require('math-random/is-secure'))
=> true || false

obey

CC0-1.0