diff --git a/function/getRandomInt.js b/function/getRandomInt.js new file mode 100644 index 0000000..de10718 --- /dev/null +++ b/function/getRandomInt.js @@ -0,0 +1,2 @@ +const getRandomInt = (max) => Math.floor(Math.random() * max); +export default getRandomInt; diff --git a/package.json b/package.json index 98f802c..23b87f7 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "description": "[![Actions Status](https://github.com/Tanya14081981/frontend-project-44/workflows/hexlet-check/badge.svg)](https://github.com/Tanya14081981/frontend-project-44/actions)", "bin": { "brain-games": "bin/brain-games.js", - "brain-even": "bin/brain-even.js" + "brain-even": "bin/brain-even.js", + "brain-calc": "bin/brain-calc.js" }, "main": "index.js", "scripts": {