Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 721 Bytes

dw-random.basicrandom.shuffle.md

File metadata and controls

27 lines (16 loc) · 721 Bytes

Home > @antv/dw-random > BasicRandom > shuffle

BasicRandom.shuffle() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Given an array, scramble the order and return it.

Signature:

shuffle<T>(array: T[]): T[];

Parameters

Parameter Type Description
array T[] the array to process

Returns:

T[]