vladalexeev-git/frontend-project-lvl1

View on GitHub
src/random.js

Summary

Maintainability
A
0 mins
Test Coverage
export default (min, max) => {
  const rand = min + Math.random() * (max + 1 - min);
  return Math.floor(rand);
};