RuanAragao / good-luck-api

Random Number Generator and Storage
https://good-luck-api.vercel.app
MIT License
4 stars 4 forks source link

(feat): Fix issue #8 #10

Closed Kakise closed 3 years ago

Kakise commented 3 years ago

added a 6 digit random number generator from the included rand-number generator util, fixing issue #8

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/ruanaragao/good-luck-api/2ykxNBSCnYyVHokEeD5z25siRw5w
✅ Preview: Failed

Kakise commented 3 years ago

Another way of implementing that would be to use:

Math.floor(Math.random() * Math.pow(10, numberOfDigits));