A simple random number generator
Implementing Linear Congruential Algorithms using coin flip!!!
Input | Type | Required |
---|---|---|
limit |
Number | true |
Constrains:
- It should be a value greater than 0
- It should be a value greater than 1,000,000
npm install
npm run test
npm run dev
Add your tests by editing the file located in the folder test\random\number.test.js
, there is a section special made for you within this file:
you would find some examples there !!! :D!
- The flip function is implemented and located in
src/utils/flip-coin.js
Is implemented within the function generateSeedFromFlipsCoin
- And the function
generateSeedFromFlipsCoin
is used within the main filesrc/random/number.js
to generates the seeds needed to execute the Linear Congruential Method