7 lines
153 B
JavaScript
7 lines
153 B
JavaScript
|
// @flow
|
||
|
const randomInteger = (min: number, max: number) => {
|
||
|
return Math.floor(Math.random() * (max - min + 1) + min);
|
||
|
};
|
||
|
|
||
|
export { randomInteger };
|