random
inline fun <E> Task<E>.random(success: FloatDistribution = ConstantFloatDistribution.ZERO_POINT_FIVE, task: Task<E>? = null, init: GdxAiRandom<E>.() -> Unit = {}): Int
Creates and adds a GdxAiRandom to the receiver Task.
Return
the index where the GdxAiRandom has been added.
Parameters
E
the type of the receiving task's blackboard.
success
the probability for the task to succeed.
task
the task to add to the GdxAiRandom.
init
an optional inline block to configure the GdxAiRandom.