(list: any[])
| 218 | } |
| 219 | |
| 220 | export function selectRandom(list: any[]) { |
| 221 | return list[randomNumber(0, list.length - 1)]; |
| 222 | } |
| 223 | |
| 224 | export function randomSelectMultiple<T extends any[]>(list: T, max = 6): T { |
| 225 | return Faker.helpers.shuffle(list).slice(Math.min(randomNumber(0, list.length), max)) as T; |