JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 459
  • Score
    100M100P100Q92837F
  • License (MIT OR GPL-3.0-or-later)

A library for generating random integers.

Package Exports

  • random-uint-below

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 (random-uint-below) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

random-uint-below

Usage

import {randomUIntBelow} from "random-uint-below"

`randomUIntBelow(max)` returns a random non-negative integer less than max `(0 <= output < max)`. `max` must be at most 2^53.

randomUIntBelow(4); // Generates a uniform random value from [0, 1, 2, 3].