# get-unique-random-number-array

> get unique number from array of numbers

Latest version **0.0.3** (published 2022-02-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install get-unique-random-number-array
pnpm add get-unique-random-number-array
yarn add get-unique-random-number-array
bun add get-unique-random-number-array
```

## 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.3 |
| Published | 2022-02-18 |
| First published | 2021-12-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Anas Ikhlas |
| Maintainers | anasikhlas |
| Keywords | array, unique, numbers, random, range |

## Links

- npm: https://www.npmjs.com/package/get-unique-random-number-array
- Repository: https://github.com/AnasOnGit/get-unique-random-number-array
- Homepage: https://github.com/AnasOnGit/get-unique-random-number-array#readme
- Issues: https://github.com/AnasOnGit/get-unique-random-number-array/issues
- npm.io page: https://npm.io/package/get-unique-random-number-array

## Dependencies (1)

- [is-array-same](https://npm.io/package/is-array-same.md) ^0.0.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2022-02-18
- 0.0.2 — 2021-12-30
- 0.0.1 — 2021-12-30

## README

# Get Unique Index From Array

Get UNIQUE and RANDOM index from the array.

## Installation

```bash
npm install get-unique-random-number-array
```

P.S. I know it's a long package name ;p

## Usage

```javascript
import { uniqueMultiRandomIndexFromArray } from "get-unique-random-number-array;

let arr = ["apple","Samsung","orange","MI","Banana"];

uniqueMultiRandomIndexFromArray(array,how many unique index needed, previous unique index array);

uniqueMultiRandomIndexFromArray(arr,2,[] );  // return [0,2];
uniqueMultiRandomIndexFromArray(arr,2,[0,2] );  // return [1,3];
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

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