# random-latitude

> Generate a random latitude.

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

## Install

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

## 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.1 |
| Published | 2016-04-25 |
| First published | 2016-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | bubkoo |
| Maintainers | bubkoo |
| Keywords | latitude, longitude, coordinates, location, random, randomly, randomize, chance, test, dice, mock |

## Links

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

## Dependencies (3)

- [clamp](https://npm.io/package/clamp.md) ^1.0.1
- [object-assign](https://npm.io/package/object-assign.md) ^4.0.1
- [random-floating](https://npm.io/package/random-floating.md) ^1.0.1

## 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
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

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

## README

# random-latitude

> Generate a random latitude.


[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/mock-end/random-latitude/blob/master/LICENSE)

[![build:?](https://img.shields.io/travis/mock-end/random-latitude/master.svg?style=flat-square)](https://travis-ci.org/mock-end/random-latitude)
[![coverage:?](https://img.shields.io/coveralls/mock-end/random-latitude/master.svg?style=flat-square)](https://coveralls.io/github/mock-end/random-latitude)


## Install

```
$ npm install --save random-latitude 
```

## Usage

```js
var randomLatitude = require('random-latitude');

// API
// - randomLatitude();
// - randomLatitude(options);

// options:
// - min  : default -90
// - max  : default 90
// - fixed: default 5

randomLatitude();
// => 57.99514
```
By default includes 5 fixed digits after decimal, can specify otherwise.

```js
randomLatitude({ fixed: 7 })
// => -29.6443133
```
By default includes entire range of allowed longitudes, can specify a min and/or max to bound it:

```js
randomLatitude({min: 38.7, max: 38.9});
// => -38.82358
```

## Related

- [random-coordinates](https://github.com/mock-end/random-coordinates) - Generate a random coordinates, which are latitude and longitude, comma separated.
- [random-longitude](https://github.com/mock-end/random-longitude) - Generate a random longitude.
- [random-altitude](https://github.com/mock-end/random-altitude) - Generate a random altitude, in meters.
- [random-depth](https://github.com/mock-end/random-depth) - Generate a random depth, in meters. Depths are always negative.
- [random-geohash](https://github.com/mock-end/random-geohash) - Generate a random geohash.
- [random-geojson](https://github.com/mock-end/random-geojson) - Generate a random geojson.
- [random-country](https://github.com/mock-end/random-country) - Return a random country. 
- [random-lang](https://github.com/mock-end/random-lang) - Return a random language name.


## Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please [create an issue](https://github.com/mock-end/random-latitude/issues/new).

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