# math-random

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

Latest version **2.0.1** (published 2020-08-07) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install math-random
pnpm add math-random
yarn add math-random
bun add math-random
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2020-08-07 |
| First published | 2017-07-13 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | separate (@types/math-random) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | Michael Rhodes |
| Maintainers | michaelrhodes |

## Links

- npm: https://www.npmjs.com/package/math-random
- Repository: https://github.com/michaelrhodes/math-random
- Homepage: https://github.com/michaelrhodes/math-random#readme
- Issues: https://github.com/michaelrhodes/math-random/issues
- npm.io page: https://npm.io/package/math-random

## Recent versions

- 2.0.1 (latest) — 2020-08-07
- 2.0.0 — 2020-07-17
- 1.0.4 — 2019-01-15
- 1.0.3 — 2019-01-15
- 1.0.2 — 2019-01-13
- 1.0.1 — 2017-07-13
- 1.0.0 — 2017-07-13

## README

# math-random

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

[![ci](https://travis-ci.org/michaelrhodes/math-random.svg?branch=master)](https://travis-ci.org/michaelrhodes/math-random)

## install
```sh
npm install math-random
```

## use
```js
console.log(require('math-random')())
=> 0.584293719381094

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

## obey
[CC0-1.0](https://creativecommons.org/publicdomain/zero/1.0/)

---
_Source: https://npm.io/package/math-random · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
