RandSelect Method

See Also Applies To Example Model

Returns a randomly selected object from the collection.

object expression.RandSelect

object expression    Required. An object expression that evaluates to an object in the Applies To list.

Example

The following example randomly selects a Cell object from a Region and sets the value of    Tag called "Alive" to True.

Region.RandSelect.Tags("Alive") = True