(next: () => number, min: number, max: number)
| 85 | |
| 86 | /** Pick a value in `[min, max)` from the sequence, rounded to whole units. */ |
| 87 | const between = (next: () => number, min: number, max: number): number => |
| 88 | Math.round(min + next() * (max - min)); |
| 89 | |
| 90 | // The frame the schematics are drawn in. 16:10, matching the card's preview box. |
| 91 | const WIDTH = 320; |
no test coverage detected