dzencot/js_l1_brain_games-s12

View on GitHub
src/functions/random.js

Summary

Maintainability
A
0 mins
Test Coverage
// @flow
/* eslint arrow-body-style: ["error", "always"]*/

export default (min, max) => {
  return Math.floor(Math.random() * ((max - min) + 1)) + min;
};