Hippiek1ller/frontend-project-lvl1

View on GitHub
src/utilities/randomNumberGenerator.js

Summary

Maintainability
A
0 mins
Test Coverage
export default (maxNum, minNum = 0) => Math.floor(Math.random() * (maxNum - minNum + 1) + minNum);