FlexLayer#getRandom()

getRandom(startIndex, length) → {any}

Returns a random child from the group.

Parameters
Name Type Argument Default Description
startIndex integer <optional>
0

Offset from the front of the group (lowest child).

length integer <optional>
(to top)

Restriction on the number of values you want to randomly select from.

Returns
any -

A random child of this Group.

Inherited From
Source code: core/Group.js (Line 2350)
doc_phaser
2017-02-14 10:47:07
Comments
Leave a Comment

Please login to continue.