UNPKG
it-postmsg
Version:
latest (1.0.1)
1.0.1
1.0.0
Streaming iterables over window.postMessage
github.com/alanshaw/it-postmsg
alanshaw/it-postmsg
it-postmsg
/
example
/
random.js
8 lines
(6 loc)
•
183 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
function
getRandomInt
(min, max)
{
min
= Math.
ceil
(
min
)
max
= Math.
floor
(
max
)
return
Math.
floor
(Math.
random
() * (
max
-
min
)) +
min
}
module
.exports.getRandomInt = getRandomInt