all files / src/ utils.ts

75% Statements 3/4
100% Branches 0/0
50% Functions 1/2
75% Lines 3/4
1 2 3 4 5 6 7 8       2090×    
export function randomNumber(max: number): number {
    return randomNumberBetween(0, max);
}
 
export function randomNumberBetween(min: number, max: number): number {
    return Math.floor(Math.random() * (max - min + 1)) + min;
}