(values: T[])
| 222 | } |
| 223 | |
| 224 | function sampleOne<T>(values: T[]): T { |
| 225 | return values[randomInt(0, values.length - 1)]; |
| 226 | } |
| 227 | |
| 228 | function sampleMany<T>(values: T[], minCount: number, maxCount: number): T[] { |
| 229 | const count = randomInt(minCount, Math.min(maxCount, values.length)); |
no test coverage detected