randomSequence

inline fun <E> Task<E>.randomSequence(tasks: Array<Task<E>> = Array(), init: RandomSequence<E>.() -> Unit = {}): Int

Creates and adds a RandomSequence to the receiver Task.

Return

the index where the RandomSequence has been added.

Parameters

tasks

the children of the RandomSequence.

init

an optional inline block to configure the RandomSequence.

Type Parameters

E

the type of the receiving task's blackboard.