GetRandom  Array

The GetRandom function retrieves one item randomly.

Syntax

Pointer Array.GetRandom(
     Integer iStart = 0,
     Integer iEnd = -1)

Parameters

iStartIndex of the first item.Optional
iEndIndex of the last item (excluded).
-1: Last array item (included).
Optional

Return value

The GetRandom function returns the object reference.

Example

Value value
value = myArray.GetRandom()
SECCIA Documentation - Copyright © 2001-2009 Sylvain Seccia