# pickrand

> Pick a random element from an array

Latest version **0.0.2** (published 2013-05-22) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2013-05-22 |
| First published | 2013-05-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | jb55 |
| Keywords | random, pick, array |

## Links

- npm: https://www.npmjs.com/package/pickrand
- Repository: https://github.com/jb55/pickrand
- npm.io page: https://npm.io/package/pickrand

## Recent versions

- 0.0.2 (latest) — 2013-05-22
- 0.0.1 — 2013-05-22

## README

# pickrand

  Pick a random element from an array

## Installation

### Component

    $ component install jb55/pickrand

### Node

    $ npm install pickrand

## API

```javascript
var pickrand = require('pickrand') 
var x = pickrand(["bill", "john", "jake"]);

// x can be "bill", "john", or "jake"

var x = pickrand([])

// x is null
```

## License

  MIT

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