Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ml-random

mljs281.2kMIT2.0.0TypeScript support: included

Choose randomly from a selection of elements

readme

ml-random

NPM version build status Test coverage npm download

Randomness utilities from a selection of elements.

Installation

$ npm install ml-random

Usage

const { Random } = require('ml-random');

API Documentation

License

MIT

changelog

Changelog

2.0.0 (2024-10-18)

⚠ BREAKING CHANGES

  • Remove default export. You need to "import {Random} from 'ml-random'"

Features

  • Remove default export. You need to "import {Random} from 'ml-random'" (2da2fb4)

1.0.1 (2023-05-16)

Bug Fixes

  • rename and export RandomNumberGenerator type (066b3de)

1.0.0 (2023-05-16)

Miscellaneous Chores