randomSelector
inline fun <E> Task<E>.randomSelector(tasks: Array<Task<E>> = Array(), init: RandomSelector<E>.() -> Unit = {}): Int
Creates and adds a RandomSelector to the receiver Task.
Return
the index where the RandomSelector has been added.
Parameters
tasks
the children of the RandomSelector.
init
an optional inline block to configure the RandomSelector.
Type Parameters
E
the type of the receiving task's blackboard.