# @tomsd/rand

> functions returning random values

Latest version **3.1.8** (published 2022-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tomsd/rand
pnpm add @tomsd/rand
yarn add @tomsd/rand
bun add @tomsd/rand
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.8 |
| Published | 2022-09-30 |
| First published | 2020-01-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | tom |
| Maintainers | tomsd |

## Links

- npm: https://www.npmjs.com/package/@tomsd/rand
- Repository: https://github.com/tomsdoo/rand
- Homepage: https://github.com/tomsdoo/rand#readme
- Issues: https://github.com/tomsdoo/rand/issues
- npm.io page: https://npm.io/package/@tomsd/rand

## Recent versions

- 3.1.8 (latest) — 2022-09-30
- 3.1.7 — 2022-09-30
- 3.1.5 — 2022-08-13
- 3.1.4 — 2022-08-13
- 3.1.3 — 2022-08-13
- 3.1.2 — 2022-07-22
- 3.1.1 — 2022-07-22
- 3.1.0 — 2022-07-15
- 3.0.0 — 2020-10-21
- 2.0.0 — 2020-10-13
- 1.1.2 — 2020-10-12
- 1.1.1 — 2020-10-12
- 1.1.0 — 2020-10-12
- 1.0.10 — 2020-02-15
- 1.0.9 — 2020-01-21
- … 9 more at https://npm.io/package/@tomsd/rand/versions

## README

# @tomsd/rand

functions returning random values

![npm](https://img.shields.io/npm/v/@tomsd/rand)
![NPM](https://img.shields.io/npm/l/@tomsd/rand)
![npms.io (quality)](https://img.shields.io/npms-io/quality-score/@tomsd/rand)
![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/@tomsd/rand)
![Maintenance](https://img.shields.io/maintenance/yes/2022)

## Installation
``` sh
npm install @tomsd/rand
```

# Usage

``` typescript
import { Rand } from "@tomsd/rand";
```

``` js

console.log(Rand.char()); // one character that is between a and z

console.log(Rand.str()); // 5 character string

const length_wanted = 8;
console.log(rand.str(length_wanted).length); // 8

console.log(rand.id()); // random string

const prefix_str = "abc";
console.log(rand.id(prefix_str)); // prefixed

```

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