Sample Command

From GeoGebra Manual
Revision as of 10:47, 1 June 2011 by Mathmum (talk | contribs) (added "Boolean" in the 2nd command syntax)
Jump to: navigation, search



Sample[ <List L>, <Size n> ]
Returns list of n randomly chosen elements of L; elements can be chosen more times.
Sample[ <List L>, <Size n>, <Boolean for replacement> ]
Returns list of n randomly chosen elements of L. Elements can be chosen more times if and only if the last parameter is true.
© 2024 International GeoGebra Institute