import { randomSlice } from '@daffodil/core'
Returns a random slice of an array. An optional length may be specified.
function randomSlice<T>(
array: T[]
length?: number
): T[]
| Parameter | array: T[] |
|---|---|
| Description |
| Parameter | length: number |
|---|---|
| Description |