This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/shared/random.js
2017-10-29 15:02:24 -07:00

7 lines
153 B
JavaScript

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