Files
opencommit/src/utils/randomIntFromInterval.ts
Sukharev 3eb319a919 GitHub action (#173)
* add option to run OpenCommit as a Github Action
2023-05-21 16:15:45 +08:00

5 lines
154 B
TypeScript

export function randomIntFromInterval(min: number, max: number) {
// min and max included
return Math.floor(Math.random() * (max - min + 1) + min);
}