Returns a random color from the active ColorTable.
object expression.ColorRand
object expression Required. An object expression that evaluates to an object in the Applies To list.
For Bot, Cell, Bots, Cells, Group, and Region objects, this method is a shortcut to the FillColorRand method of the BotShape and CellShape objects.
The following example uses the ColorBy method to randomly set the color of all Bot object's Pen color.
Bots.Pen.ColorRand