SelectAtRandom
SelectAtRandom

Selects an instance randomly

bSuccess = myClass.SelectAtRandom( bAny )

Return value
TRUE if the objects were selected successfully, otherwise FALSE.

Parameters
  • bAny
    TRUE to allow any object to be selected, FALSE (default) to only pick from currently selected objects.
Comments

This function uses the default Random function rather than the Special object's Random function. This means that you may notice some patterns in the choices if used very frequently.

See also
Class:SelectAll
Class:SelectNone
Class:SelectInverse



JAM © 2005 no one in particular
Project started by David Evans in 2005