# random-second

> Generate a random second.

Latest version **1.0.3** (published 2016-04-25) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2016-04-25 |
| First published | 2016-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | bubkoo |
| Maintainers | bubkoo |
| Keywords | second, time, random, randomly, randomize, chance, test, dice, mock |

## Links

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

## Dependencies (1)

- [random-natural](https://npm.io/package/random-natural.md) ^1.0.3

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2016-04-25
- 1.0.2 — 2016-04-25
- 1.0.1 — 2016-04-25
- 1.0.0 — 2016-04-24
- 0.0.0 — 2016-04-21

## README

# random-second

> Generate a random second.
  
[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/mock-end/random-second/blob/master/LICENSE)
  
[![build:?](https://img.shields.io/travis/mock-end/random-second/master.svg?style=flat-square)](https://travis-ci.org/mock-end/random-second)
[![coverage:?](https://img.shields.io/coveralls/mock-end/random-second/master.svg?style=flat-square)](https://coveralls.io/github/mock-end/random-second)
  
  
## Install
  
  ```
  $ npm install --save random-second 
  ```
  
## Usage
  
  ```js
var randomSecond = require('random-second');
  
// API
// - randomSecond([options]);
  
// options
// - min
// - max
```

By default, returns a minute from `0` to `59`. Idea is for generating a clock time.
  
```js
randomSecond();
// => 37
```

Optionally specify min, max, or both to limit the range.

```js
randomSecond({ min: 10 });
// => 18

randomSecond({ max: 40 });
// => 23

randomSecond({ min: 10, max: 40 });
// => 32
```

## Related
  
- [random-year](https://github.com/mock-end/random-year) - Generate a random year.
- [random-month](https://github.com/mock-end/random-month) - Generate a random month.
- [random-day](https://github.com/mock-end/random-day) - Generate a random day of a month.
- [random-hour](https://github.com/mock-end/random-hour) - Generate a random hour.
- [random-minute](https://github.com/mock-end/random-minute) - Generate a random minute.
- [random-millisecond](https://github.com/mock-end/random-millisecond) - Generate a random millisecond.
- [random-weekday](https://github.com/mock-end/random-weekday) - Generate a random weekday.
- [random-datetime](https://github.com/mock-end/random-datetime) - Generate a random date. 
- [random-ampm](https://github.com/mock-end/random-ampm) - Return am or pm. Very simple.
- [random-timestamps](https://github.com/mock-end/random-timestamps) - Generate a timestamp. 
- [random-hammertime](https://github.com/mock-end/random-hammertime) - Generate a random hammertime.   
  
## Contributing
  
Pull requests and stars are highly welcome.
  
For bugs and feature requests, please [create an issue](https://github.com/mock-end/random-second/issues/new).

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