Difference between revisions of "Sample Command"

From GeoGebra Manual
Jump to: navigation, search
(added "Boolean" in the 2nd command syntax)
Line 5: Line 5:
 
;Sample[ <List L>, <Size n>, <Boolean for replacement> ]
 
;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.
 
:Returns list of ''n'' randomly chosen elements of ''L''. Elements can be chosen more times if and only if the last parameter is true.
 +
==CAS Syntax==

Revision as of 14:19, 3 August 2011



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.

CAS Syntax

© 2024 International GeoGebra Institute