RandomDataGenerator#weightedPick()

weightedPick(ary) → {any}

Returns a random member of array, favoring the earlier entries.

Parameters
Name Type Description
ary Array

An Array to pick a random member of.

Returns
any -

A random member of the array.

Source code: math/RandomDataGenerator.js (Line 283)
doc_phaser
2017-02-14 11:06:48
Comments
Leave a Comment

Please login to continue.