mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
5 lines
154 B
TypeScript
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);
|
|
}
|