Files
30-seconds-of-code/test/randomNumberInRange/randomNumberInRange.js
2018-01-09 06:09:49 -05:00

1 line
65 B
JavaScript

module.exports = (min, max) => Math.random() * (max - min) + min;