Preparing search index...
The search index is not available
Nestia API Documents
Nestia API Documents
@nestia/e2e
RandomGenerator
sample
Function sample
Pick random elements from an array.
sample
<
T
>
(
array
:
T
[]
)
:
(
count
:
number
)
=>
T
[]
Type Parameters
T
Parameters
array
:
T
[]
Target array
Returns
(
count
:
number
)
=>
T
[]
Sampled array
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Nestia API Documents
Loading...
Pick random elements from an array.