Skip to content

Commit

Permalink
Merge pull request #55 from bhattabhi013/issue#51
Browse files Browse the repository at this point in the history
feat: added generate random number functionality
  • Loading branch information
Susmita-Dey committed Oct 19, 2022
2 parents 2005cba + f2eef4c commit 81a046f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package/index.js
Expand Up @@ -142,6 +142,11 @@ function calculatesin(num) {
return Math.sin((Math.PI/180)*num);
}

// generate random number
function getRandom() {
return Math.floor(Math.random() * 1000);
}

// Export functions
module.exports = {
doAdd,
Expand All @@ -154,6 +159,7 @@ module.exports = {
doMod,
root,
percentage,
getRandom,
calcAge,
calcLoan,
timeCalc,
Expand Down

1 comment on commit 81a046f

@vercel
Copy link

@vercel vercel bot commented on 81a046f Oct 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.