1 function generateRandomInteger (max
, min
= 0) {
3 return Math
.floor(Math
.random() * (max
- min
+ 1) + min
)
5 return Math
.floor(Math
.random() * max
+ 1)
8 const LIST_FORMATTER
= new Intl
.ListFormat('en-US', {
13 module
.exports
= { generateRandomInteger
, LIST_FORMATTER
}