https://github.com/barrosfilipe/radig
:slot_machine: A tiny (65B) and fast utility to randomize a fixed amount of digits
https://github.com/barrosfilipe/radig
65b digits fast numbers random randomzine string tiny utility
Last synced: 4 months ago
JSON representation
:slot_machine: A tiny (65B) and fast utility to randomize a fixed amount of digits
- Host: GitHub
- URL: https://github.com/barrosfilipe/radig
- Owner: barrosfilipe
- License: mit
- Created: 2020-03-05T00:09:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-16T23:17:15.000Z (over 4 years ago)
- Last Synced: 2025-10-06T03:45:04.629Z (8 months ago)
- Topics: 65b, digits, fast, numbers, random, randomzine, string, tiny, utility
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# radig
> A tiny (65B) and fast utility to randomize a fixed amount of digits
It generates a `random` fixed amount of `digits` of your choice and returns as `String`
## Important
`radig` can't be guaranteed to be unique.
## Install
`npm i radig --save`
## Usage
```js
const radig = require('radig');
// length = 1 (default)
radig(); //=> '5'
radig(); //=> '0'
// customize length
radig(3); //=> '571'
radig(16); //=> '8547512354785473'
```
## Tests
`npm test`