https://github.com/daadu/fix-random
generates fix random numbers for a given string.
https://github.com/daadu/fix-random
Last synced: 3 months ago
JSON representation
generates fix random numbers for a given string.
- Host: GitHub
- URL: https://github.com/daadu/fix-random
- Owner: daadu
- Created: 2015-05-23T10:54:01.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-23T10:54:28.000Z (about 10 years ago)
- Last Synced: 2025-01-02T02:43:08.936Z (5 months ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fix Random Number Generator
It generates fix random number for a fixed input string. Random numbers which will be generated based on fix string.
## Usage
#### Import the script
import the script in the head section of the file
#### Method call
fixRandom(fixString, numberOfRandomNumber);
1. fixString - fixed string based on which random numbers will be generated
2. numberOfRandomNumber - no of random number to be generated, no more than 32The method returns an array of random number fix for the given string, i.e. if same string is inputted it generates the same random number.
## Dependency
Thanks to dchest's [github repo](https://github.com/dchest/fast-sha256-js)