# rndm

> random string generator

Latest version **1.2.0** (published 2015-10-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install rndm
pnpm add rndm
yarn add rndm
bun add rndm
```

## 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 | 1.2.0 |
| Published | 2015-10-27 |
| First published | 2014-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/rndm) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | Jonathan Ong |
| Maintainers | coderhaoxin, dougwilson, fishrock123, jongleberry |
| Keywords | random, number, generator, uid, id |

## Links

- npm: https://www.npmjs.com/package/rndm
- Repository: https://github.com/crypto-utils/rndm
- Homepage: https://github.com/crypto-utils/rndm#readme
- Issues: https://github.com/crypto-utils/rndm/issues
- npm.io page: https://npm.io/package/rndm

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2015-10-27
- 1.1.1 — 2015-10-22
- 1.1.0 — 2014-12-27
- 1.0.0 — 2014-06-08

## README

# RNDM

Random string generator.
Basically `Math.random().toString(36).slice(2)`,
but with both upper and lower case letters and arbitrary lengths.
Useful for creating fast, not cryptographically secure salts.

## API

```js
// base62 by default
var rndm = require('rndm')
var salt = rndm(16)
```

### var salt = rndm(length)

### var salt = rndm.base62(length)

### var salt = rndm.base36(length)

### var salt = rndm.base10(length)

### var random = rndm.create(characters)

Create a new random generator with custom characters.

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