Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Math.RandomDataGenerator
shuffle([array])
Description:
Shuffles the given array, using the current seed.
Parameters:
name
type
arguments
description
array
Array.<T>
<optional>
The array to be shuffled.
Returns:
Description:
The shuffled array.
Type:
Array.<T>
Since:
3.7.0
Source:
src/math/random-data-generator/RandomDataGenerator.js
(Line
473
)
Possible examples