(min: number, max: number)
| 380 | } |
| 381 | |
| 382 | function randomRange(min: number, max: number): number { |
| 383 | return min + Math.random() * (max - min); |
| 384 | } |
| 385 | |
| 386 | function clamp(value: number, min: number, max: number): number { |
| 387 | return Math.max(min, Math.min(max, value)); |
no test coverage detected