UNPKG
littelbit-brain-games
Version:
latest (1.8.7)
1.8.7
1.8.6
1.8.5
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.1
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.0
1.4.2
1.4.1
1.3.1
1.3.0
1.2.0
1.1.0
1.0.0
hexlet brain-games
github.com/windyeti/project-lvl1-s316
windyeti/project-lvl1-s316
littelbit-brain-games
/
dist
/
utils.js
9 lines
(7 loc)
•
189 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
=
function
(
min, max
) {
return
Math
.
round
(min -
0.5
+
Math
.
random
() * (max - min +
1
)); };