RandomElement Command

From GeoGebra Manual
Revision as of 10:22, 10 June 2012 by Murkle (talk | contribs)
Jump to: navigation, search



RandomElement[ <List> ]
Returns randomly chosen element from the list (with uniform probability). All elements in the list must be of the same type.
Example:
RandomElement[{3, 2, -4, 7}] yields one of {-4, 2, 3, 7}.
Note:
See also Element Command.

CAS Syntax

RandomElement[ <List> ]
Returns randomly chosen element from the list (with uniform probability). All elements in the list must be of the same type.
Example:
RandomElement[{3, 2, -4, 7}] yields one of {-4, 2, 3, 7}.
Note:
See also Element Command.
© 2024 International GeoGebra Institute