* Returns a randomly chosen value using the custom randomize value callback. * If not applicable, `null` is returned. * @protected * @param {Random} random Random number generator * @return {mixed} Randomly chosen value
(random)
| 333 | * @return {mixed} Randomly chosen value |
| 334 | */ |
| 335 | randomizeValueWithCallback (random) { |
| 336 | if (this._randomizeValueCallback !== null) { |
| 337 | return this._randomizeValueCallback(random, this) |
| 338 | } |
| 339 | return null |
| 340 | } |
| 341 | |
| 342 | /** |
| 343 | * Returns wether a custom randomize value callback is set. |