# pp-random

> Function for get random text, number or anythings

Latest version **1.0.5** (published 2025-06-19) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2025-06-19 |
| First published | 2021-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Carlos Illesca |
| Maintainers | carlos-sweb |
| Keywords | random, generate, random number, random letter, random symbols |

## Links

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

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2025-06-19
- 1.0.4 — 2025-06-15
- 1.0.3 — 2025-06-15
- 1.0.2 — 2022-08-02
- 1.0.1 — 2021-12-20
- 1.0.0 — 2021-12-20

## README

# pp-random

[Try online](https://pp-random.netlify.app)

## Getting Started

In the web project include pp-random with:

```html
<script src="https://cdn.jsdelivr.net/npm/pp-random/dist/pp-random.min.js" ></script>
```

Or

## Install

```console
npm i pp-random --save
```

## How to use ?

```javascript
import random from './dist/pp-random.js'

const test = random(20).get()

// length of random string
const len = 30
// Default options
const opt = { 
	number    : true ,
    upperCase : true ,
    lowerCase : true ,
	symbols   : true ,
    exclude   : []
}

const test1 = random( len , opt ).get()

const test2 = random(50,{	
	exclude:["@",">","*"]
}).get()

console.log(test)
console.log(test1)
console.log(test2)
```

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